Results 1 to 4 of 4

Thread: OpenGL surfaces frozen (QGLWidget)

  1. #1
    Join Date
    Apr 2013
    Posts
    61
    Qt products
    Qt4
    Platforms
    Windows

    Default OpenGL surfaces frozen (QGLWidget)

    Hi,

    I have a problem with QGLWidgets, and it seems to be something related to one specific Pc, since my project works properly in other Pcs.

    I use:
    Qt 4.8.3
    Windows 7
    Graphic Card: Intel GMA 3000

    I can create several OpenGL surfaces, BUT when I close the last one created (that seems to be the pattern), all previously created surfaces get frozen. If then I create a new one, all of them get unfrozen and all works properly again.

    For example, this code in my application works:

    Qt Code:
    1. bool MyClass::init()
    2. {
    3. ...
    4. {
    5. QGLWidget* w1 = new QGLWidget();
    6.  
    7. [do something with w1]
    8. }
    9.  
    10. [application works, w1 is NOT frozen]
    11. ...
    12. }
    To copy to clipboard, switch view to plain text mode 

    But with this code my OpenGL surfaces get frozen, since w2 is deleted...

    Qt Code:
    1. bool MyClass::init()
    2. {
    3. ...
    4. {
    5. QGLWidget* w1 = new QGLWidget();
    6.  
    7. [do something with w1]
    8. }
    9.  
    10. {
    11. }
    12.  
    13. [w1 IS frozen]
    14. ...
    15. }
    To copy to clipboard, switch view to plain text mode 


    I hope someone could help me...

    Thanks in advance,

    Diego

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: OpenGL surfaces frozen (QGLWidget)

    I would assume you have broken OpenGL drivers for your graphics chip.
    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.


  3. #3
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,332
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    317
    Thanked 871 Times in 858 Posts

    Default Re: OpenGL surfaces frozen (QGLWidget)

    {
    QGLWidget w2;
    }
    You don't really mean you're creating a QGLWidget on the stack, do you?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: OpenGL surfaces frozen (QGLWidget)

    I think he is. The point is that the widget is created and deleted.
    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.


Similar Threads

  1. OpenGL drawing outside QGLWidget
    By zzz9 in forum Qt Programming
    Replies: 1
    Last Post: 29th January 2012, 15:34
  2. Setting up OpenGL shaders with QGLWidget
    By Wasabi in forum Newbie
    Replies: 7
    Last Post: 9th September 2011, 18:12
  3. QGLWidget + OpenGL + CUDA
    By sic(6)SaNdMaN in forum Qt Programming
    Replies: 7
    Last Post: 25th January 2011, 01:20
  4. QGLWidget renderText() problem in openGL.
    By pastispast in forum Qt Programming
    Replies: 7
    Last Post: 11th October 2010, 18:21
  5. OpenGL ES2.0 QGLWidget at GraphicsScene
    By chithize in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 19th August 2010, 05:11

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.