There are more constructors available for QCoreApplication as an addition to the standard C++ constructor:
It takes the global $ARGV list. It's a simplified version of QCoreApplication( $ARGV ).
It will use the $list variable as a list with arguments.