Results 1 to 20 of 20

Thread: Fast Timer Updates vs. Monitor Refresh Rates

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Fast Timer Updates vs. Monitor Refresh Rates

    You do not need to get the signal from the display. OpenGl has a function that does that for you.

    What I would try to do:
    Create a graphicsview that contains the user interface. Make it so that everything inside the graphicsview is painted via OpenGl
    There are lots of tutorials in the Qt labs and documentation.
    And then use the information from the blog post about blocking the eventloop and synchronising the eventloop to the refresh rate of the monitor.

    If you use a graphicsview and opengl, the effects possible with your user interface are infinite, although limited to the contents of the graphicsview.

    Edit:
    Here's a nice example:
    http://labs.qt.nokia.com/2008/06/27/...s-with-opengl/

    Edit 2:
    You need this function:
    http://doc.qt.nokia.com/latest/qglfo...etSwapInterval
    Set it to 1

    Tip:
    QML does this out of the box. It's worth studying the code.
    Last edited by tbscope; 7th December 2010 at 04:34.

Similar Threads

  1. X Monitor in a Qt form
    By prasenjit in forum Qt-based Software
    Replies: 1
    Last Post: 29th April 2010, 06:58
  2. Monitor a new added File
    By designer.software in forum Qt Programming
    Replies: 1
    Last Post: 27th February 2010, 09:50
  3. Replies: 2
    Last Post: 10th August 2009, 09:45
  4. Qt system monitor?
    By khopper in forum Qt Programming
    Replies: 2
    Last Post: 7th November 2008, 15:32
  5. How to calculate Monitor Resolution?
    By ashukla in forum Qt Programming
    Replies: 2
    Last Post: 7th October 2007, 07:28

Tags for this Thread

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.