I am writing a program on Solaris 9 in Qt 4.1.4. I have a QMainWindow that all it contains is a menubar, toolbar, and a QGLWidget. I had been having problems that after printing it would slow down its redraws. I have now discovered it slows down when any other window partially obscures the window. If I bring a terminal window to the front or a print dialog or anything on top of my QMainWindow, the redraws take > 1 minute where before ever obstructing the window redraws would take 3-5 seconds. I decided to capture the QPaintEvent inside my QGLWidget class and have discovered that not only does the execution of my updateGL take longer, but half the time is wasted trying to get down to the QGLWidget QPaintEvent. What would cause this major slowdown in redrawing? I don't understand how obstructing the window suddenly makes it draw slower. I have even tried ignoring the repaints for the obstructed views so the only redraws that occur would be when the entire QMainWindow was redrawn. Thanks for your help!!
Bookmarks