PDA

View Full Version : Expand qglwidget



Cucus
27th June 2011, 23:08
Hi,

I have an interface with a qGLwidget and some layouts with widgets to interact with. My question is, when I run my app, when I expand the frame of the app, is there a way to just expand my qGLwidget?

Thanks

mcosta
29th June 2011, 11:59
QGLWidget is a QWidget so you need to set SizePolicies.

After that you can reimplement QGLWidget::resizeGL() in order to setup the viewport according new sizes