KApplication template

From Trinity Desktop Project Wiki
Revision as of 21:30, 26 May 2014 by imported>Eliddell (Created page with "Category:Developers Category:KDE3 Category:Tutorials <syntaxhighlight lang="text"> #include <qstring.h> #include <kapplication.h> #include <kaboutdata.h> #include...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


#include <qstring.h>
#include <kapplication.h>
#include <kaboutdata.h>
#include <kmessagebox.h>
#include <kcmdlineargs.h>

int main (int argc, char *argv[])
{
        KAboutData aboutData( "test", "test",
        "1.0", "test", KAboutData::License_GPL,
        "(c) 2006" );
        KCmdLineArgs::init( argc, argv, &aboutData );
        KApplication khello;
        KMessageBox::information(0,"This is an example");
}