[PyQt] Word wrap in QLabel - strange resizing - rephrased

Mads Ipsen madsipsen at gmail.com
Mon Aug 22 10:20:32 BST 2011

Sorry for my extremely sloppy writing. I'll try again:


If you set wordWrap to True for a QLabel which has been added to a 
widget with a layout, the resizing of the parent widget is kinda 
strange: The widget can be resized to nothing etc.

I've attached a small example, displaying two widgets which both include 
a QLabel: one with wordwrap on, and one without. Try to resize the two 
widgets and see if you can reproduce the behavior.

This must be a bug, right?

Best regards,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: word_wrap.py
Type: text/x-python
Size: 1229 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110822/b4a351ac/attachment.py>

More information about the PyQt mailing list