Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.9.6, 5.13.0
-
None
-
-
90a82ad8e (dev), ba9fa54b9 (6.9), e1053a157 (6.8)
Description
QSortFilterProxyModel::mapFromSource returns a valid QModelIndex for the child index of the filtered out item. In other words, if B is child of A in the source model and A filtered out by proxy model, QSortFilterProxyModel::mapFromSource returns a valid QModelIndex for B. But invalid QModelIndex for A.
Attached a project that demonstrates the problems (see assert).
Attachments
For Gerrit Dashboard: QTBUG-76976 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
634256,4 | QSFPM: fix mapping corruption in mapFromSource() on hidden row child | dev | qt/qtbase | Status: MERGED | +2 | 0 |
635314,2 | QSFPM: fix mapping corruption in mapFromSource() on hidden row child | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
635610,2 | QSFPM: fix mapping corruption in mapFromSource() on hidden row child | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |