Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

A problem about QDateTime in Qt 5.9.1



  • Hi
    I upgrade my Qt creator from 5.6.2 to 5.9.1,but one struct has QDateTime returns Segmentation failt.

    struct Data_T
    {
        ....
        QDateTime time;
    };
    

    when I get the Date_T member, the project will be broken.
    What's the problem of using QDateTime in struct?

    Regards
    Mihan


  • Moderators

    hi @Mihan

    first of, you probably mean Qt not QtCreator, as the QtC version is currently at 4.10.2
    2nd, when you update to an 5.9 which is an LTS version I would suggest going to the latest one available

    What's the problem of using QDateTime in struct?

    nothing, a struct is a class, nothing fancy going on here.

    Please post more code, and preferably a stack trace of it actually crashing.


Log in to reply