PDA

View Full Version : QGLWidget and resize



themolecule
6th May 2008, 06:51
It seems that when my window is created, it reports the wrong size to the resizeGL() command, and it doesn't fix until I manually resize the window.

Is there a command to force recalculation of the layout, and thus feed the correct value to the widget on initialization?

jpn
13th May 2008, 08:46
Are you sure the layout is constructed properly? QGLWidget (at least the X11 version) calls resizeGL() in its resizeEvent() as long as the GL context is valid so there should be no problems.