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.