Details
-
Bug
-
Resolution: Cannot Reproduce
-
P3: Somewhat important
-
None
-
5.12.5, 5.13.2, 5.14.0 Beta2
-
None
-
Cannot reproduce the bug in Qt >= 5.15
Description
The attached example application (based on Qt's TreeModel example) does some model transformations (moving items, removing items) with indexes filtered-out by the proxy. This can trigger two problems with QSortFilterProxyModel:
- an ASSERT when using Qt Debug build (possibly a crash with a release build)
- a misleading qWarning about an inconsistent model
Both cases can be triggered by activating/deactivating the FORCE_ASSERT macro in MyFilterModel::filterAcceptsRow.
Attachments
For Gerrit Dashboard: QTBUG-79800 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
280519,2 | QSortFilterProxyModel: Avoid mapping of indirectly filtered-out indexes | 5.14 | qt/qtbase | Status: ABANDONED | 0 | 0 |
280520,3 | QSortFilterProxyModel: Avoid mapping of indirectly filtered-out indexes | 5.14 | qt/qtbase | Status: ABANDONED | -1 | 0 |