KCmdLineArgs4 Question

David Faure faure at kde.org
Tue Jan 3 10:09:56 GMT 2006

On Tuesday 03 January 2006 01:13, Benjamin Meyer wrote:
> > 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).
> I need to look into it more, but if possible I would still like to remove 
> KApplication

We would have to write something like this then:
  KCmdLineArgs::init( as usual );
  QApplication app( KCmdLineArgs::qtArgc(),  KCmdLineArgs::qtArgv() );

A bit... verbose, no?

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