Results 1 to 4 of 4

Thread: OpenGL update() function updating too fast

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: OpenGL update() function updating too fast

    I had a quick look at your code. I really suggest you make "angle" a property and use QPropertyAnimation instead of that timer. This will give you much better control over what is going on in your program assuming you want it to do some more things than to just animate one single arm movement or if you want to make it look more realistic (e.g. by changing linear movement to non-linear one that contains some ease-in/ease-out behaviour).
    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.


  2. The following user says thank you to wysota for this useful post:

    kango (14th February 2013)

Similar Threads

  1. repaint/update stops updating GUI
    By gokceng in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 28th November 2011, 14:35
  2. Replies: 6
    Last Post: 6th July 2011, 19:07
  3. QProgreesDialog updating from within threadable function
    By Astrologer in forum Qt Programming
    Replies: 3
    Last Post: 9th August 2010, 15:07
  4. QGraphicsView to fast update images
    By ^NyAw^ in forum Qt Programming
    Replies: 12
    Last Post: 8th May 2009, 22:17
  5. QGraphicsView, OpenGL and repainting/updating
    By Amargedon in forum Qt Programming
    Replies: 2
    Last Post: 19th January 2009, 12: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
  •  
Qt is a trademark of The Qt Company.