I expected that as well. As it turns out, QSortFilterProxyModel maintains its own internal proxy_to_source & source_to_proxy mappings.Originally Posted by wysota
I looked into it, but it requires a lot of additional signal/slot administration. Simply implementing the pure virtual functions is not enough, since changes to the source model are not propagated via the abstract proxy model to the view automatically. But I think I'll have to go that way now, as I'm ready to give up on QSortFilterProxyModelOriginally Posted by wysota
![]()
My last try is to re-implement index() and data() using mapToSource & mapFromSource and see where that leaves me.
Bookmarks