don't call qApp->foo() to initialise a global variable
Instead, initialise the variable just before it's used, in Style::init() when it is certain that a QCoreApplication instance exists.