PDA

View Full Version : Timer for hour



nanjesh
5th January 2017, 06:14
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

ChrisW67
5th January 2017, 07:18
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.