Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QFont crash with Qt 5
Forum Updated to NodeBB v4.3 + New Features

QFont crash with Qt 5

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wssddc
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved