Answering my own question: Setting a fixed width overcomes the problem, and only the height changes. Could someone who uses Git submit to the QLabel word wrap property:
Note: Setting word wrap true without a fixed width and/or height may result in inconsistent sizing. Tony > -----Original Message----- > From: interest-bounces+tony=rightsoft.com...@qt-project.org > [mailto:interest-bounces+tony=rightsoft.com...@qt-project.org] On Behalf > Of Tony Rietwyk > Sent: Friday, 18 July 2014 11:59 AM > To: interest@qt-project.org > Subject: [Interest] QLabel inconsistent sizing with word wrap > > 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 _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest