Results 1 to 2 of 2

Thread: QGLWidget and multiple windows

  1. #1
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Thanks
    37
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Red face QGLWidget and multiple windows

    I am running my program on Solaris 9 with 4 monitors and 4 graphics cards. Each monitor contains one plot window. Each plot window has a QGLWidget that holds a plot. To draw the plot I make many calls to glBitmap( ) and to print the image I make the call glReadPixels( ). I have noticed that once I open an auxiliary window and make one of these calls, my OpenGL draws occur very slowly. Is there a reason why I would notice a huge performance hit with opening one of these additional windows? What used to take 2-3 seconds to render now takes 30+ seconds to render after opening a secondary window. I don't know if this is an OpenGL issue or a Qt issue because everything seems to work fine until I open a secondary window over the plot window. Thanks again for your help!

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

    Default Re: QGLWidget and multiple windows

    Try moving your GL code to a separate binary so that you get rid of Qt dependencies (you can use GLUT to help you) and see if the problem persists. This should let you identify if the problem is with Qt or not.

Similar Threads

  1. 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.