[Qt-interest] adapt the size of a QLabel inside a QVBoxLayout
Markus Franke
markus.franke at informatik.tu-chemnitz.de
Tue Feb 24 11:49:31 CET 2009
Zitat von Andre Somers <andre at familiesomers.nl>:
> Did you try to set the sizePolicy of your QLabel to Expanding? Just
> a suggestion, not sure if it will work for you.
yes I tried but this doesn't work neither. Besides the documentation states:
---snip---
sizePolicy : QSizePolicy
This property holds the default layout behavior of the widget.
If there is a QLayout that manages this widget's children, the size
policy specified by that layout is used. If there is no such QLayout,
the result of this function is used.
---snap---
As I have already a QVBoxLayout the size policy of the QLable should
be unused.
So long,
Markus
More information about the Qt-interest-old
mailing list