[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Help Please. Widget sizing problems in an app I'm creating
From: "Wilco Greven" <j.w.greven () student ! utwente ! nl>
Date: 2001-10-28 20:59:35
[Download RAW message or body]
On Sun, Oct 28, 2001 at 10:55:18PM +0100, Martijn Klingens wrote:
> On Sunday 28 October 2001 21:27, John Gluck wrote:
> > 1- How to get a widget to occupy the entire space avaiable in its
> > parent. It seems children only take up as much space as they need by
> > default.
>
> QWidget::setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
>
> or similar. See QSizePolicy docs. There are other approaches as well to get a
> similar effect, I personally like this one best, as it is quite flexible if
> you carefully add size policies where needed.
It can be instructive to play a bit with these settings in Qt Designer.
Wilco
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic