Results 1 to 3 of 3

Thread: Analog clock and shaped clock examples not updating time??

  1. #1
    Join Date
    Apr 2017
    Posts
    21
    Qt products
    Qt5
    Platforms
    Windows

    Default Analog clock and shaped clock examples not updating time??

    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

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    4,719
    Thanks
    259
    Thanked 760 Times in 750 Posts
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: Analog clock and shaped clock examples not updating time??

    Works just fine for me. Maybe you've run out of time?

    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.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. #3
    Join Date
    Apr 2017
    Posts
    21
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Analog clock and shaped clock examples not updating time??

    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.

Similar Threads

  1. Replies: 1
    Last Post: 5th October 2010, 21:31
  2. Replies: 0
    Last Post: 5th October 2010, 21:13
  3. QPainter and Qt analog clock example
    By Diph in forum Qt Programming
    Replies: 2
    Last Post: 25th September 2009, 18:34
  4. Customizable Analog clock general advice needed
    By been_1990 in forum Qt Programming
    Replies: 0
    Last Post: 21st September 2009, 19:17
  5. Custom Widget Plugin Analog Clock
    By kemp in forum Qt Programming
    Replies: 8
    Last Post: 11th August 2006, 14:22

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.