Translations:Development/Tutorials/First program/42/en

From KDE TechBase

QCommandLineParser parser;

   parser.addHelpOption();
   parser.addVersionOption();
   aboutData.setupCommandLine(&parser);
   parser.process(app);
   aboutData.processCommandLine(&parser);
   
   KGuiItem yesButton( i18n( "Hello" ), QString(),
                       i18n( "This is a tooltip" ),
                       i18n( "This is a WhatsThis help text." ) );