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



  • 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;;
    

    }
    @


  • Moderators

    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).



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.