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. Qt5 rc1 crashes with qWarning() ? or is it just me ?
Forum Updated to NodeBB v4.3 + New Features

Qt5 rc1 crashes with qWarning() ? or is it just me ?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.5k 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.
  • N Offline
    N Offline
    nizeguy
    wrote on last edited by
    #1

    I'm getting crashes with qWarning() in rc1, was using beta2 and everything was fine. Is it just my installation (linux + mageia 3 alpha) or is it a qt5 problem ? maybe some icu conflict ?

    @
    #include <QApplication>
    #include <qdebug.h>

    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);

    qDebug() << "qDebug() XXXXXXXXXX" << endl;
    qWarning() << "qWarning() crash after this :(" << endl;
    qDebug() << "qDebug() XXXXXXXXXX" << endl;
    
    a.exec&#40;&#41;;
    

    }
    @

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Did you "file a bug report":https://bugreports.qt-project.org/ ?

      Something like that should be brought to the attention of the developers (and most do not read this forum).

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nizeguy
        wrote on last edited by
        #3

        I guess it had to do with a "QApplication crashes" bug that was fixed recently in git.
        Anyway, changed to QGuiApplication and it is working now.
        Also the qlogging.h header i made qWarning an alias to qDebug().
        Thanks for the attention.

        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