[Qt-interest] Problem with Layout, it does not resize itself

Andre Somers andre at familiesomers.nl
Wed Feb 17 13:26:44 CET 2010


Maximilien Renard wrote:
> Dear Qt Users,
>
> I'm having some trouble using layouts.
>
> Basically, this is what I have in a widget which is in a QScrollArea 
> which is set as the centralWidget of my MainApplication :
>
> Widget::Widget() : QWidget() {}
>
> And this is (not the example but the code isn't that much different) 
> what I get when I resize the QMainWindow. On the screenshot you can 
> also see what is happening when I add a widget into either one of both 
> layouts (existings widgets become smaller since the layout is not 
> resized).
>
> http://www.ixamaxi.be/images/problem-layout.png
>
> Could someone explain me what is happening ?
>
I guess the problem is, that nobody is managing the layout of the widget 
itself.

André



More information about the Qt-interest-old mailing list