Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.11.0
-
None
Description
auto oldModel = new QStandardItemModel(10, 10); auto newModel = new QStandardItemModel(20, 20); auto proxy = new QSortFilterProxyModel; proxy->setSourceModel(oldModel); QCOMPARE(proxy->rowCount(), 10); proxy->setSourceModel(newModel); QCOMPARE(proxy->rowCount(), 20); delete oldModel; QCOMPARE(proxy->rowCount(), 20);
last rowCount returns 0
Attachments
Issue Links
- duplicates
-
QTBUG-68427 Segfault in subsurface
- Closed
-
QTBUG-67948 Crash in QSortFilterProxyModel
- Closed
-
QTBUG-44962 Persistent child indexes refer to incorrect model when source model changed
- Closed