[PyQt] flowlayout example and labels

Sebastian Elsner sebastianelsner at freenet.de
Fri Aug 1 18:25:49 BST 2014


Hello,

replacing a button in the flowlayout example with a label produces some 
unexpected results: the label is not vertically centred as it would be 
with a simple hboxlayout (see image attached). I have tried to offset 
the label by adding QSize to its geometry, setting the size policy to 
expanding and setting the alignment to centered. But nothing did help. 
What am I missing?

Regards

Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flowlayout.png
Type: image/png
Size: 8931 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140801/91af0d09/attachment.png>


More information about the PyQt mailing list