Results 1 to 12 of 12

Thread: QGLWidget bug

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2007
    Location
    Russia
    Posts
    19
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Question QGLWidget bug

    I think we have the bug in OpenGL texture engine. I’ve write application. It draws simple filled rectangle in separate thread, and then pushes image into main windows event loop through signal/slot system. Main widget requests thread to render new image every timer tick. After some time passed, it crashes deep into Qt core.

    But, if you uncomment 2 lines in source code and compile/run it again, it will work perfectly! This lines changes inheritance to QWidget instead of QGLWidget.

    Qt Code:
    1. //class OpenGLHashBug: public QWidget
    2. class OpenGLHashBug: public QGLWidget
    To copy to clipboard, switch view to plain text mode 
    and
    Qt Code:
    1. //OpenGLHashBug::OpenGLHashBug(QWidget *parent, Qt::WFlags flags): QWidget(parent)
    2. OpenGLHashBug::OpenGLHashBug(QWidget *parent, Qt::WFlags flags): QGLWidget(parent)
    To copy to clipboard, switch view to plain text mode 

    I think bug is near synchronization of QHashMap for OpenGL textures...

    What do you think about it? Is it my mistake or not?


    P.S. Sorry for my bad English…
    Attached Files Attached Files

Similar Threads

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

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.