Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. void setUp(QCommandLineParser parser);
  2.  
  3. void ExecuteTask::setUp(QCommandLineParser parser){
  4. parser.setApplicationDescription("Learning console app in Qt");
  5. parser.addHelpOption();
  6. }
  7.  
  8. ...
  9. QCoreApplication app(argc, argv);
  10. ExecuteTask cmnd_line_func;
  11. QCommandLineParser parser;
  12. cmnd_line_func.setUp(parser);
  13. ...
  14.  
  15. parser.process(app)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement