Am Fri, 18 Jul 2014 11:59:15 +1000
schrieb "Tony Rietwyk" <t...@rightsoft.com.au>:

> Hi Everybody. 
> 
> In my Qt 4.8.6 application I cannot understand why this QLabel widget's
> sizing varies wildly depending on the text content - even for similar text!
> The QLabel has only WordWrap switched on, and Alignment Top/Left.  All of
> the widgets shown have size policy Preferred, except for the top level with
> the black border that has horizontal and vertical both set to
> MinimumExpanding.  I've checked the source records and both descriptions are
> plain text without any line breaks, etc.  
> 
> There are lots of hits when googling, but few answers. 
> 
> Can anyone shed light on this?  Has the text layout code been improved in
> v5?  
> 
> Regards, 
> 
> Tony

hi,

i assume your yellow marked text is the QLabel in question. 

as your whole layout (QFrame?) is smaller in the 2nd screenshot, it would be 
only reasonable for the QLabel inside this layout to resize as well, or not?

alex

-- 
/*
 *printk(KERN_WARNING "%s: Thanks, I feel much better now!\n", dev->name);
 *        linux-2.6.6/drivers/net/de620.c
 */

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to