Here is a test project:
#include <QtGui>
#include <QStringList>
int main(int argc, char** argv){
QStringList l
= qApp
->arguments
();
// qApp is a macro to QApplication instance and the arguments() returns a QStringList with the arguments
t.setText(l.join("\n"));
t.show();
return a.exec();
}
#include <QtGui>
#include <QStringList>
int main(int argc, char** argv){
QApplication a(argc, argv);
QTextEdit t;
QStringList l = qApp->arguments(); // qApp is a macro to QApplication instance and the arguments() returns a QStringList with the arguments
t.setText(l.join("\n"));
t.show();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
LE: I'm on win now and the first one is the full path and name of the application
Bookmarks