[Qt-interest] Qt Layout Squashing
Dave Smith
dave at thesmithfam.org
Tue Mar 9 18:04:46 CET 2010
Ian Thomson wrote:
> I vaguely remember reading something in the documentation about this,
> but I'm having trouble finding it now. It was something along the lines
> of when you use QWidget::heightForWidth, it can disable the minimum size
> constraints for the entire layout structure that contains the label. A
> multi-line label uses this function and can cause this effect.
That sounds like a good place to look, but why does it work when the
label is not in a QStackedWidget, and breaks when it is inside a
QStackedWidget?
I also tried placing the two QLabels in a QFrame (instead of a
QStackedWidget), and the problem does not appear.
--Dave
More information about the Qt-interest-old
mailing list