Results 1 to 4 of 4

Thread: QGLWidget Redraws

  1. #1
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Thanks
    37
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Red face QGLWidget Redraws

    I have a program running on Windows XP with Qt 4.3. In the program we open multiple windows each with 2-7 QGLWidgets. We have multiple monitors meaning we can spread these windows across our workspace so we can see them all at once without having any of the windows on top of each other. When we click on one window to make it active and then click on another window to make it now active, the window always redraws. Some of the windows have a lot of data displayed and they take up to 10-15 seconds to redraw the scene. Is there a way to keep windows from redrawing if we make them active and there were no other windows currently lying on top of them? In these instances there is no need to redraw since the whole window was visible before and nothing has changed by just making the window active. Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Thanks
    37
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QGLWidget Redraws

    Anybody have any ideas? I have been struggling with this for a while now...thanks!

  3. #3
    Join Date
    Jan 2008
    Posts
    11
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: QGLWidget Redraws

    Maybe visibleRegion () helps. If it is the same than the widgets dimension and you are sure all content is properly drawn you can exit immediately from paintEvent.

    André

  4. #4
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Thanks
    37
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QGLWidget Redraws

    Thanks I will give that a try and post my results!

Similar Threads

  1. Transparent window with QGLWidget
    By ultr in forum Qt Programming
    Replies: 4
    Last Post: 28th April 2008, 07:01
  2. QGLWidget resize problem.
    By anderl in forum Qt Programming
    Replies: 2
    Last Post: 22nd January 2008, 08:57
  3. why linking problem with QGLWidget???
    By Shuchi Agrawal in forum Newbie
    Replies: 17
    Last Post: 16th March 2007, 10:45
  4. Transparent QWidget on QGLWidget
    By showhand in forum Qt Programming
    Replies: 2
    Last Post: 27th November 2006, 01:00
  5. QGLWidget on another QGLWiget
    By showhand in forum Qt Programming
    Replies: 1
    Last Post: 23rd October 2006, 09:59

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.