Hello guys, :)
I have a QMainWindow dialog that contains 2 other widgets sorted vertically (everything is done with coding, not with forms). The top one is an openGL simulation. The bottom one is the options for the openGL implementation, which is another child widget of my QMainWindow.
The problem is the following. Obviously, the options widget has to be very small compared to the openGL widget. But the QMainWindow is splitting them in halves vertically, which streches the options window and makes it look bad.
I would like the options widget to be vertically as small as possible vertically to fit all the controls in it, but horizontally streched.
Any efforts are highly appreciated!
Thank you in advance :-)
"Size policies":http://doc.qt.nokia.com/4.7/qwidget.html#sizePolicy-prop and "stretch":http://doc.qt.nokia.com/4.7/qboxlayout.html#setStretch factors are your friends...
Thanks a lot buddy. Got it :D
For other people to learn it! :)