-
Bug
-
Resolution: Done
-
P1: Critical
-
4.7.1
-
None
-
62b5ef3cc1306e46a4042b14867f2f92d9a110f3, 30b82b9440fcfc4a703d1a2b1150efd6b4147093, 6d4d265e7e67dde58e45d7d89f4974d0bd8b70e4, fb0765f5285b8518b3336a6aa36de1adc37bc1fc, 659c889f64e76ec9aece2dd9e24a7f65875c46ad
In QGraphicsLayout, the whole height-for-width stuff seems to be broken.
The attached program creates a SquareWidget whose sizehint tries to make it a
square. Then this is added a layout.
By passing in the width as the constraint, the square gives the correct
sizehint:
Preferred size of square of width 100 is QSizeF(100, 100)
But passing in the width as the constraint to the layout gives the wrong
sizehint:
Preferred size of layout of width 100 containing a square is QSizeF(100, 20)