So you don't have any application object - neither console nor non-console. In this case QCoreApplication::startingUp() would be enough.