Development/Tutorials/Programming Tutorial KDE 3/kapp: Difference between revisions
Neverendingo (talk | contribs) m (Text replace - "<code>" to "<syntaxhighlight lang="text">") |
Neverendingo (talk | contribs) m (Text replace - "</code>" to "</syntaxhighlight>") |
||
Line 15: | Line 15: | ||
KMessageBox::information(0,"This is an example"); | KMessageBox::information(0,"This is an example"); | ||
} | } | ||
</ | </syntaxhighlight> |
Latest revision as of 20:54, 29 June 2011
#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");
}