[Qt-interest] QLabel fill entire space of a cell of QGridLayout

Markus Franke Franke.M at sebakmt.com
Thu Sep 9 11:33:03 CEST 2010


Dear all,

I have a custom widget which is managed by a QGridLayout. I want to put 
several QLabel's with text into the grid layout.

However the labels are only scaled as big as to fit the text which is 
inside.
How can I achieve that the QLabel's are expanded to fill the entire 
available space of one cell of the grid layout?

I tried to play around with the size policy of the QLabel's but so far I 
didn't succeed.

Thanks for help and best regards,

Markus Franke


"Disclaimer: This message is intended only for the use of the individual 
or entity to
which it is addressed and may contain information which is privileged, 
confidential, proprietary,
or exempt from disclosure under applicable law. If you are not the 
intended recipient or the person
responsible for delivering the message to the intended recipient, you are 
strictly prohibited from
disclosing, distributing, copying, or in any way using this message. If 
you have received this 
communication in error, please notify the sender and destroy and delete 
any copies you may have
received."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100909/1180677d/attachment.html 


More information about the Qt-interest-old mailing list