[Qt-interest] adapt the size of a QLabel inside a QVBoxLayout
Markus Franke
markus.franke at informatik.tu-chemnitz.de
Tue Feb 24 09:00:16 CET 2009
Dear Qt Developers/Users,
I have a QLabel inside a QVBoxLayout. The text of the QLabel is
dynamic, word wrapping is enabled for the QLabel and I am calling
QWidget::adjustSize() on the QLabel.
However, if the text inside the QLabel is too long the QVBoxLayout
doen't adapt it's size according to the contents of the QLabel. After
3 lines of text the rest is simply cut off.
How can I achieve the wanted behaviour?
Thanks for any comments on this,
Markus Franke
More information about the Qt-interest-old
mailing list