Development/Tutorials/Programming Tutorial KDE 3/kapp: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 13: | Line 13: | ||
KCmdLineArgs::init( argc, argv, &aboutData ); | KCmdLineArgs::init( argc, argv, &aboutData ); | ||
KApplication khello; | KApplication khello; | ||
KMessageBox::information(0,"This is an example | KMessageBox::information(0,"This is an example"); | ||
} | } | ||
</highlightSyntax> | </highlightSyntax> | ||
Revision as of 11:49, 28 October 2006
<highlightSyntax language="cpp">
- 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");
} </highlightSyntax>