KDE Platform - Hello World Example

Hello World Example

#include #include #include #include #include int main (int argc, char *argv) { KAboutData aboutData( // The program name used internally. "tutorial1", // The message catalog name // If null, program name is used instead. 0, // A displayable program name string. ki18n("Tutorial 1"), // The program version string. "1.0", // Short description of what the app does. ki18n("Displays a KMessageBox popup"), // The license this code is released under KAboutData::License_GPL, // Copyright Statement ki18n("Copyright (c) 2007"), // Optional text shown in the About box. // Can contain any information desired. ki18n("Some text..."), // The program homepage string. "http://example.com/", // The bug report email address "submit@bugs.kde.org"); KCmdLineArgs::init( argc, argv, &aboutData ); KApplication app; KGuiItem yesButton( i18n( "Hello" ), QString, i18n( "This is a tooltip" ), i18n( "This is a WhatsThis help text." ) ); KMessageBox::questionYesNo( 0, i18n( "Hello World" ), i18n( "Hello" ), yesButton ); return 0; }

Read more about this topic:  KDE Platform

Famous quotes containing the word world:

    But when the bowels of the earth were sought,
    And men her golden entrails did espy,
    This mischief then into the world was brought,
    This framed the mint which coined our misery.
    ...
    And thus began th’exordium of our woes,
    The fatal dumb-show of our misery;
    Here sprang the tree on which our mischief grows,
    The dreary subject of world’s tragedy.
    Michael Drayton (1563–1631)