[Qt-interest] Resize ScrollArea question

wim.delvaux at adaptiveplanet.com wim.delvaux at adaptiveplanet.com
Fri Jan 30 16:35:42 CET 2009


Hi,

I got this scrollarea that contains a certain widget.

That widget can be small or large.

The scrollarea is contained in another widget with a layout.

What I want is that the scrollarea resizes with the widget it is contained 
within ONLY IF the widget that the scrollarea contains is able to show more 
of its content.  I.e. if the widget is small, the the scrollarea should 
stretch to a size which shows the complete small widget but not stretch 
beyond that size.

How can I acchieve this ?

Thx
W



More information about the Qt-interest-old mailing list