KCmdLineArgs4 Question

David Faure faure at kde.org
Mon Jan 2 11:48:29 GMT 2006

On Monday 02 January 2006 12:11, Richard Lärkäng wrote:
> On Monday 02 January 2006 11:28, David Faure wrote:
> > Hmm. If we want to get rid of KApplication for kde4, then we'll need to
> > simply pass all argc/argv from main to QApp, and then
> > KCmdLineArgs::qt_arg[cv] can go away. I'm not sure why KCmdLineArgs took
> > care of filtering out non-qt options, when Qt can do that by itself
> > already.
> In the apidocs for qt_argv it says:
> "Returns command line options for consumption by Qt after parsing them in a 
> way that is consistent with KDE's general command line handling. In 
> particular this ensures that Qt command line options can be specified as 
> either -option or --option and that any options specified after '--' will be 
> ignored."

Ah, thanks; should have looked that up.

Well, so if we want to keep this, we need KApplication to stay indeed - for the normal
case (KDE program with standard Qt/KDE command-line options).

David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).

More information about the kde-core-devel mailing list