[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Layout of QVBox in KDialogBase
From:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2003-06-04 9:49:17
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Sunday 01 June 2003 09:49, Michal Rudolf wrote:
> How can I set layout of QVBox created with KDialogBase::addVBoxPag? I'd
> like to add some kind of stretch so that if there are not enough
> widgets on the page, they are aligned to the top, not stretched
> throught the whole page.
>
> Adding stretch with addStretch() to (QVBoxLayout*)QVBox->layout() adds
> it on the top, so all widget are aligned to the bottom.

You could add a QSpacerItem as the last itm of the layout and have it 
expand vertically

Cheers,
Kevin

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Krammer <kevin.krammer@gmx.at>
Developer at the Kmud Project http://www.kmud.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[Attachment #5 (application/pgp-signature)]

>> 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