Qt-interest Archive, March 2002
resizing a QGLWidget
Message 1 in thread
I have a problem where I want to resize a QGLWidget before showing the
widget. If I resize to a particular size before or after the show, then I
see the window flicker on at the requested size with no painting done on it
and then resizes itself to a different (but identical each time I run the
program) size sometime after show. I am using QWidget::resize( int, int ).
It resizes when resizing the window by dragging the corner with the mouse
correctly. How does resizing the window using resize events versus a call to
resize differ? Is there a way to specify the sizeHint of the widget without
overriding the class and without using setFixedSize? Thanks.
JD