Results 1 to 2 of 2

Thread: Timer for hour

  1. #1

    Default Timer for hour

    Hi All,
    I need help for the below problem.
    suppose the current time is 11:30 AM , I want get notified at 12PM , 1PM , 2PM ...
    how can we do that.I need the suggestions

  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: Timer for hour

    A shortish repeating timer (QTimer) connected to a slot looking at the current time (QTime) and a variable keeping track of the last hour seen (i.e. 11, 12, 13...23, 0 etc.) looking for changes.

Similar Threads

  1. Replies: 8
    Last Post: 7th October 2016, 20:14
  2. Replies: 6
    Last Post: 4th September 2014, 10:06
  3. timer problem(timer does not work)
    By masuk in forum Newbie
    Replies: 6
    Last Post: 14th February 2011, 06:00
  4. Replies: 2
    Last Post: 3rd October 2009, 01:37
  5. QFileInfo::lastModified seems to be one hour off
    By hardgeus in forum Qt Programming
    Replies: 4
    Last Post: 1st May 2007, 18:03

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.