Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <QObject>
- #include <QCoreApplication>
- #include <QStringList>
- #include <QDebug>
- class Test : public QObject
- {
- public:
- Test(QObject *parent = 0) : QObject(parent)
- {
- int d1, d2;
- QStringList args = qApp->arguments();
- d1 = args[1].toInt();
- d2 = args[2].toInt();
- qDebug() << d1 << d2;
- }
- };
Add Comment
Please, Sign In to add comment