[Qt-interest] QScrollArea and size issue
Matthieu Dazy
matthieu.dazy at PDGM.com
Mon Dec 1 15:18:11 CET 2008
Daniel Hartwig wrote:
> or sorry, you mean the size of the scrollarea at resize() ?
>
> That can you solve with:
>
> void xyz::resizeEvent( QResizeEvent * event){
>
> scrollarea->resize(this->width(),this->height);
> }
The way I understand the setWidgetResizable() documentation, this should
be the default behaviour, i.e. I expect the scrollarea to assume the
size of its contained widget, and I shouldn't have to code anything for
that.
However when I leave this property to false, the scrollarea is displayed
but appears to be empty: it looks just as if its contained widget
somehow gets a zero size. The sa_contents widget displays fine if I
create it on its own, but I can't get it to show up correctly once it is
placed inside a scrollarea. This is what I'd like to understand.
--
Matthieu Dazy (matthieu.dazy at pdgm.com) -- tel. +33 (0)3 83 67 66 19
Paradigm, Nancy -- http://www.pdgm.com
---------------------------------------------------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.
More information about the Qt-interest-old
mailing list