Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.13.0, 6.3.2
-
None
-
8c18a245b (dev), 0c9787bab (6.6), c26e7f278 (6.5)
Description
I suspect this is a regression from https://bugreports.qt.io/browse/QTBUG-69120
The UI file contains a QTableView and a QTreeview with a vertical size policy of Fixed and a sizeAdjustPolicy of AdjustToContents. In 5.12.11 this would result in a perfectly sized table to embed in a larger scroll area. Starting with 5.13.0 it began to always reserve space for the horizontal scroll bar, even when it is not shown.
The only workaround I've found is to set the horizontalScrollBarPolicy to ScrollBarAlwaysOff, but this is not appropriate in all cases.
Attachments
Issue Links
- is duplicated by
-
QTBUG-113552 Wrong sizeHint for QTreeWidget having an AdjustToContents sizeAndAdjustPolicy
- Closed
- resulted from
-
QTBUG-69120 QTreeView viewportSizeHint is wrong when called before showing the widget
- Closed