Results 1 to 3 of 3

Thread: QTimer problem with Date/Time

  1. #1
    Join Date
    Dec 2010
    Posts
    4
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Symbian S60 Maemo/MeeGo

    Default QTimer problem with Date/Time

    Hi,

    I'm using Qt 4.7.1 on a Unix platform. The problem is that i've an application which has an implementation of Date/Time, for e.g. changing the date.

    Now the issue is like this:-

    My current date is set to today's date i.e. 11.05.2011. Now, if I change my date to 7 or more years back for e.g. 11.05.2004 or 11.05.2000, then the QTimer events stops firing.
    The same works fine if i change the date to 11.05.2010 or 11.05.2005. (i.e. less than 7 yrs gap).

    Any help would be appreciated. Thanks in advance!

    Regards,
    Bhavik.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QTimer problem with Date/Time

    Don't use QTimer then. Try using timerEvent().
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Dec 2010
    Posts
    4
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Symbian S60 Maemo/MeeGo

    Default Re: QTimer problem with Date/Time

    Hey thanks for the reply,

    On debugging, we came to know that the problem was with clock_gettime() implementation inside the code and not with QTimer's.

Similar Threads

  1. Date Time
    By javed_alam786 in forum Qt Programming
    Replies: 2
    Last Post: 11th May 2011, 14:52
  2. other time...can't get date
    By mmm286 in forum Newbie
    Replies: 7
    Last Post: 4th March 2010, 15:53
  3. Problem wit QTimer, different time, why?
    By perseo in forum Qt Programming
    Replies: 6
    Last Post: 8th August 2008, 09:41
  4. Date Time
    By starcontrol in forum Qt Programming
    Replies: 3
    Last Post: 4th April 2008, 11:02
  5. date-time problem
    By aegis in forum Qt Programming
    Replies: 5
    Last Post: 11th February 2007, 18:45

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.