Results 1 to 5 of 5

Thread: [Qt 5.1.1] QDateTime always being set to Thursday October 15

  1. #1
    Join Date
    Oct 2013
    Posts
    14
    Thanks
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default [Qt 5.1.1] QDateTime always being set to Thursday October 15

    I have a problem with QDateTime, everytime i use it, and go into debugger to check its' value it is always set to Thursday Oct 15 00:00:00.

    i made a test and checked again to see if it was the application or not, but it seems it's a problem with qdatetime.

    Does anyone know a work around or fix for this?

    this is the code i am using.

    Qt Code:
    1. QDateTime Now = QDateTime::currentDateTime();
    2. QDate Date = QDate(2014,1,1);
    3. QTime Time = QTime(1,1,1);
    4. QDateTime Test = QDateTime(Date,Time);
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: [Qt 5.1.1] QDateTime always being set to Thursday October 15

    This is glitch in the gdb debugger helpers in some versions of Qt Creator as far as I can tell. It does not occur with Qt Creator 3.0 but did with 2.8 on my Linux box. If you expand the date entry in the debugger the child entries were correct.

  3. The following user says thank you to ChrisW67 for this useful post:

    jigglyslime (3rd January 2014)

  4. #3
    Join Date
    Oct 2013
    Posts
    14
    Thanks
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: [Qt 5.1.1] QDateTime always being set to Thursday October 15

    is there any way to update Qt creator other than downloading the new version?

  5. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: [Qt 5.1.1] QDateTime always being set to Thursday October 15


  6. #5
    Join Date
    Oct 2013
    Posts
    14
    Thanks
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: [Qt 5.1.1] QDateTime always being set to Thursday October 15

    ok i updated the qt creator but now all the Qdatetime variables are invalid.

Similar Threads

  1. QDateTime not working
    By kgdauaa88 in forum Qt Programming
    Replies: 1
    Last Post: 14th October 2013, 05:44
  2. Qt DEVELOPER DAYS BERLIN 7-9 October
    By Qtdeveloperdays in forum General Discussion
    Replies: 0
    Last Post: 19th September 2013, 10:33
  3. QDateTime and comparsion
    By Talei in forum Newbie
    Replies: 0
    Last Post: 17th May 2010, 16:19
  4. QDateTime without Day
    By raphaelf in forum Qt Programming
    Replies: 4
    Last Post: 16th February 2006, 11:42

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.