Guest User

Untitled

a guest
Jan 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <QObject>
  2. #include <QCoreApplication>
  3. #include <QStringList>
  4. #include <QDebug>
  5.  
  6. class Test : public QObject
  7. {
  8. public:
  9. Test(QObject *parent = 0) : QObject(parent)
  10. {
  11. int d1, d2;
  12. QStringList args = qApp->arguments();
  13.  
  14. d1 = args[1].toInt();
  15. d2 = args[2].toInt();
  16.  
  17. qDebug() << d1 << d2;
  18. }
  19. };
Add Comment
Please, Sign In to add comment