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. A problem about QDateTime in Qt 5.9.1

A problem about QDateTime in Qt 5.9.1

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 232 Views
  • 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.
  • MihanM Offline
    MihanM Offline
    Mihan
    wrote on last edited by
    #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

    J.HilkJ 1 Reply Last reply
    0
    • MihanM Mihan

      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

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      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.


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      3

      • Login

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