QApplication

There are more constructors available for QApplication as and addition to the set of standard C++ constructors:

QApplication()

It takes the global $ARGV list. It's a simplified version of QCoreApplication( $ARGV ).

QApplication( list )

It will use the $list variable as a list with arguments.