PDA

View Full Version : Analog clock and shaped clock examples not updating time??



davidm71
18th April 2017, 00:32
Hi,

Been playing around with the demo code especially the shaped clock and the analog clock and it compiles and runs just fine except the time doesn't get updated like every 1000 ms like its suppose to and not sure why?

Thanks

d_stranz
18th April 2017, 04:40
Works just fine for me. Maybe you've run out of time? :D

Seriously, the timer may timeout every second, but the clock in the demo only has minute and hour hands, so you're going to have to wait a while to see any real movement. Since you are playing around with the demo code, you should try adding a second hand. It isn't hard, and it'll teach you something about QPainter.

davidm71
18th April 2017, 12:35
My mistake it works but its just slow so i didnt notice. Played with the code and added a second hand so it definitely works.