Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
4.8.6
-
None
-
baad82d242a4d8c1af6c87faaa7f25584183fd53
Description
QIdentityProxyModel does not properly handle/propagate 'layoutAboutToBeChanged' signal from the source model.
In particular it stores it's persistent index list before emitting the layoutAboutToBeChanged signal and therefore before an attached views can actually store/retrieve the persistent indexes from the model. This (among other things) breaks item view's selection when sorting the source model.
The fix should be simple, just move the q->layoutAboutToBeChanged(); line in QIdentityProxyModelPrivate::_q_sourceLayoutAboutToBeChanged
before the for loop.
Attachments
Issue Links
- duplicates
-
QTBUG-32981 QIdentityProxyModel not working when chained with a QSortFilterProxyModel
- Closed