Results 1 to 4 of 4

Thread: Handling several QGLWidget

  1. #1
    Join Date
    Jun 2010
    Location
    France
    Posts
    7
    Qt products
    Qt4 Qt Jambi
    Platforms
    Unix/X11 Windows
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default Handling several QGLWidget

    Hello,

    I have quite a simple problem. I would like to have a widget containing several different QGLWidget.

    The problem is that, I start with the HelloGL example qiven directly by QtCreator. Then, where there is the instanciation of a GLWidget, I decide to instanciate two of them.

    Then, I put both of them in the layout.

    The problem is that the display is awful. The background of the GLWidget is not what it should be, instead of dispalying the Qt logo, it keeps on dispaying the background, or just nothing, as if the widget were empty.

    Well, anything would be helpful!

  2. #2
    Join Date
    Jun 2010
    Location
    India
    Posts
    50
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    1
    Thanked 15 Times in 14 Posts

    Default Re: Handling several QGLWidget

    texture under examples/OpenGL is a good example of using multiple GL widgets.

  3. The following user says thank you to agathiyaa for this useful post:

    fezvez (2nd July 2010)

  4. #3
    Join Date
    Jun 2010
    Location
    France
    Posts
    7
    Qt products
    Qt4 Qt Jambi
    Platforms
    Unix/X11 Windows
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default Re: Handling several QGLWidget

    Well, thanks for the tip...

    The problem is that even the textures example has the same problem as my HelloGL modification

    I didn't want to say it, but I believe this is caused by my Ubuntu 10.04... I had no problem with my 9.10 version, but when I switched to the 10.04, I observed this glitch... I thought it was my fault, some kind of mistake I did, but it seems that it's not just me...

    Well, half-solved, at least

  5. #4
    Join Date
    Jun 2010
    Location
    India
    Posts
    50
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    1
    Thanked 15 Times in 14 Posts

    Default Re: Handling several QGLWidget

    If textures sample doesn't work then you have to fix this in x configuration file. I do not rember the key's but try enabling swcursor,dri if they are not enabled.

Similar Threads

  1. Handling QMouseEvents
    By Lodorot in forum Qt Programming
    Replies: 1
    Last Post: 24th June 2009, 15:21
  2. Bug in MDI handling
    By daren in forum Qt Programming
    Replies: 1
    Last Post: 31st March 2009, 15:13
  3. ZIP files handling
    By kodiak in forum Qt Programming
    Replies: 5
    Last Post: 28th April 2008, 15:26
  4. qmouseEvent handling
    By nass in forum Qt Tools
    Replies: 9
    Last Post: 13th October 2006, 09:55
  5. Regarding KeyPad Handling
    By mahe2310 in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 17th July 2006, 09:03

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.