Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
None
-
6.9.0
-
None
-
-
0d61e8ec5 (dev)
Description
It seems that as a result of 9e3a96189d9db8a458e65cd5078509afe7a160db, the sections of a QTableView are no longer automatically resizing when their size hint is changed before calling QAbstractItemView::scheduleDelayedItemsLayout and optionally QAbstractItemView::executeDelayedItemsLayout.
Some debugging revealed that this is likely due to QHeaderViewPrivate::hasAutoResizeSections returning false since its contentsSections value remains on 0 rather than reflecting the number of actual sections (since it now only updates QHeaderViewPrivate::countInNoSectionItemsMode). This in turn causes QHeaderView::updateGeometries not to call QHeaderViewPrivate::doDelayedResizeSections, which means that eventually in executePostedResize the delayedResize.isActive() check fails.
I don't have a small example to reproduce this problem, but I do have an application which is now broken on Arch Linux and Fedora since they've already updated to Qt 6.9 and users are now running into this issue: https://github.com/mapeditor/tiled/issues/4191
Attachments
For Gerrit Dashboard: QTBUG-136453 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
645318,1 | Fix QHeaderView auto section resize corner case | 6.9 | qt/qtbase | Status: NEW | +2 | 0 |
645319,1 | Fix QHeaderView auto section resize corner case | 6.9.1 | qt/qtbase | Status: NEW | +2 | 0 |