Results 1 to 5 of 5

Thread: Qt 4.7 + QGLWidget causes lock up when window resizes/moves

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.7 + QGLWidget causes lock up when window resizes/moves

    This:
    Qt Code:
    1. myGlWidget = new QGLWidget(this);
    2.  
    3. connect(myTimer, SIGNAL(timeout()), this, SLOT(updateRender()));
    4.  
    5. myTimer->start(0);
    To copy to clipboard, switch view to plain text mode 

    will cause your GL widget to update continuously( after other events have been processed).
    Why do you use such a construct in the first place?
    Are you sure this is what you want?
    This could also explain the behavior you are experiencing, depending on how you implemented updateGL().

    I tested the sample example below with Qt 4.6.1 that I had before and this works without any problems so it's something new with Qt 4.7.
    If you did something wrong before which 4.6 somehow allowed, the fact 4.7 is not allowing it doesn't necessarily mean the problem is with the new Qt version (more like with the older version).
    Last edited by high_flyer; 18th April 2011 at 09:28.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. How to render context of QGLWidget, outside of the window
    By KnufflPuffl in forum Qt Programming
    Replies: 1
    Last Post: 28th December 2010, 21:41
  2. QWidget/QGlwidget ( + window opacity )
    By medved6 in forum Qt Programming
    Replies: 0
    Last Post: 5th October 2010, 06:14
  3. Replies: 1
    Last Post: 2nd July 2010, 19:47
  4. problem: Window moves on click when maximized
    By Toshikazu in forum Qt Programming
    Replies: 3
    Last Post: 30th January 2010, 22:22
  5. Transparent window with QGLWidget
    By ultr in forum Qt Programming
    Replies: 4
    Last Post: 28th April 2008, 07:01

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.