[Qt-interest] QLabel fill entire space of a cell of QGridLayout
Tony Rietwyk
tony.rietwyk at rightsoft.com.au
Thu Sep 9 17:08:03 CEST 2010
Hi Markus,
I'm confused - labels fill the space by default - see attached from
designer. The left label has its text alignment changed to center, and the
right label has stylesheet background: red; Both labels are in a grid
with the default Preferred size policy.
Tony.
-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Markus Franke
Sent: Friday, 10 September 2010 00:12
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] QLabel fill entire space of a cell of QGridLayout
David Boosalis <david.boosalis at gmail.com> schrieb am 09.09.2010 15:48:51:
> Adding it to the grid with Qt::AlignCenter will keep it small.
Well, yes. But this is actually the thing which I would like to avoid. The
widget should grow in all directions rather than staying small.
Any suggestions?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100910/4dafed3b/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qlabel_in_grid.png
Type: image/png
Size: 437898 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100910/4dafed3b/attachment.png
More information about the Qt-interest-old
mailing list