QApplication::QApplication ( int & argc, char ** argv )
Initializes the window system and constructs an application object
The arguments passed in the constructor are later accessible through the static method QStringList QCoreApplication::arguments(). By this, command line arguments can be handled everywhere in your code.
QStringList QCoreApplication::arguments()