Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
5.4.0
-
None
-
OS X, Qt 5.4.0, 64 Bit, clang compiled.
Windows 8, Qt 5.4.0
Description
If a QDialogButtonBox with no buttons is added to a layout, the sizeHint() of the layout containing the button box doesn't change after adding a button to the button box.
After show() is called, the size (height) of the layout is corrected.
I assume the problem is related to the dirty flag in QLayoutPrivate. This prevents a recalculation in QBoxLayout::sizeHint().
Probably adding the first button to a QDialogButtonBox should set the dirty flag of the layout that contains the button box.
Attachments
Issue Links
- relates to
-
QTBUG-15832 QLayoutItem, QLayout sizeHint is incorrect if parent widget already visible/show
-
- Closed
-
-
QTBUG-17244 QGraphicsLayout Layouting should be done in one go. Ugly layouting visible otherwise
-
- Closed
-
For Gerrit Dashboard: QTBUG-43617 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
105458,2 | Add missing updateGeometry() in QDialogButtonBox | 5.4 | qt/qtbase | Status: ABANDONED | -1 | 0 |