Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, January 2007
calls to paintGL not occuring?


Message 1 in thread

I have a QSplitter window that has a QGLWidget in the top half and a 
QTextEdit in the bottom half.

The scene in the QGLWidget constructs and renders fine; I can rotate the 
scene with the mouse, move the splitter bar, etc. and the QGLWidget 
appears to handle resizing and repainting.

However, when I bring up a QFileDialog (or any other dialog box), and 
drag it across the QGLWidget, the widget does not update and the dialog 
leaves graphics artifacts all over the graphics window.

The QSplitter window is a child window of a QWorkSpace in an MDI app.

It appears the paintGL method is not being called in all circumstances.  
Did I forget to connect the QGLWidget via Signals/Slots in its parent 
Window?

Mark

-- 
 [ signature omitted ] 

Message 2 in thread

Hi,

> I have a QSplitter window that has a QGLWidget in the top half and a 
> QTextEdit in the bottom half.

Could you show the relevant code?

> [...]
> The QSplitter window is a child window of a QWorkSpace in an MDI app.
> 
> It appears the paintGL method is not being called in all circumstances.  
> Did I forget to connect the QGLWidget via Signals/Slots in its parent 
> Window?

You shouldn't have to do anything like that.

Are you able to reproduce that with any of the OpenGL widgets shipping 
with Qt? Does this happen only with a QSplitter parent?

Which exact version of Qt is this? On which platform?

--
 [ signature omitted ]