01: int main(int argc, char *argv[])
02: {
03:
04: KAboutData aboutData( "helloworld", I18N_NOOP("HelloWorld"),
05: VERSION, description, KAboutData::License_GPL,
06: "(c) 2001, Jason Mott", 0, 0, "jmott@users.sourceforge.net");
07: aboutData.addAuthor("Jason Mott",0, "jmott@users.sourceforge.net");
08: KCmdLineArgs::init( argc, argv, &aboutData );
09: KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
10:
11: KApplication a;
12: HelloWorld *helloworld = new HelloWorld();
13: // helloworld will be cleaned up by KApplication, as QT
14: // cleans up all its child widgets for you.
15: a.setMainWidget(helloworld);
16: helloworld->show();
17:
18: return a.exec();
19: }
End of Listing