From kde-devel Wed Jun 04 09:49:17 2003 From: Kevin Krammer Date: Wed, 04 Jun 2003 09:49:17 +0000 To: kde-devel Subject: Re: Layout of QVBox in KDialogBase X-MARC-Message: https://marc.info/?l=kde-devel&m=105472265022757 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============88415422104057795==" --===============88415422104057795== Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_jCc3+3YfzcQTQ4o"; charset="iso-8859-2" Content-Transfer-Encoding: 7bit --Boundary-02=_jCc3+3YfzcQTQ4o Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Description: signed data Content-Disposition: inline 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=20 expand vertically Cheers, Kevin =2D-=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Kevin Krammer Developer at the Kmud Project http://www.kmud.de/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --Boundary-02=_jCc3+3YfzcQTQ4o Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA+3cCjnKMhG6pzZJIRAn0XAJ9DpTzBzmAPG+Q1fs0DUsb9+MoA+QCfQ5vY 6iff3cAUKuigY3NwJaZqBM8= =d3c+ -----END PGP SIGNATURE----- --Boundary-02=_jCc3+3YfzcQTQ4o-- --===============88415422104057795== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============88415422104057795==--