Results 1 to 3 of 3

Thread: Problem with multiple QGLWidgets

  1. #1
    Join Date
    Feb 2007
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Problem with multiple QGLWidgets

    Hello,

    in my application there are two 3D windows, each one corresponding
    to a derived class of QGLWidget. These windows share display lists/textures
    and use the same QGLFormat at creation.

    If I only show a single view everything is fine, but if I show both the
    application becomes very unstable after a small amount of time (about 2 minutes).
    All other widgets of my application are not refreshed correctly and
    finally it crashes in the OpenGL driver.

    Maybe it has something to do with context switching.

    Any help is welcome.

  2. #2
    Join Date
    Feb 2007
    Location
    Italy
    Posts
    69
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Problem with multiple QGLWidgets

    Do you use makeCurrent()?
    I'm not expert with multiple OpenGL context, but once i had a problem related to its use.

  3. #3
    Join Date
    Feb 2007
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem with multiple QGLWidgets

    Well the problem was something related, I did't call makeCurrent() at the right place in my code, thanks...

Similar Threads

  1. Textures + Multiple QGLWidgets
    By KShots in forum Qt Programming
    Replies: 8
    Last Post: 19th October 2007, 21:23
  2. Replies: 11
    Last Post: 7th July 2006, 13:09
  3. problem about multiple project in Kdevelop
    By coralbird in forum KDE Forum
    Replies: 6
    Last Post: 9th March 2006, 01:48
  4. Replies: 16
    Last Post: 7th March 2006, 15:57
  5. Replies: 10
    Last Post: 1st February 2006, 10:08

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.