Qt World Summit: Register Today!

QFont crash with Qt 5

  • I get a crash in dynamic initializer for foo with:

    @#include <QApplication>
    #include <QFont>
    QFont foo;

    int main(int argc, char *argv[])
    return 0;

    Help tells me that "a QGuiApplication instance must exist before a QFont can be used." Am I violating this rule just by declaring foo? This worked in Qt 4.

    Windows 7, Qt 5.0.0, MS VC++ 2010, 32-bit.

Log in to reply