Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QAbstractProxyModel subclassing and row selection
edgreen last edited by
I have created a QAbstractProxyModel subclass in order to perform multiple column sorting.
Row selection is not behaving correctly; once the table is sorted, selection is not mapped correctly, and appears to be based on the source model.
I had assumed that the mapSelectionFromSource/mapSelectionToSource methods would be used to resolve this, but they never get called. The documentation is a bit thin here; and perusing the source of QSortFilterProxyModel has not yielded any clues.
I am a bit stumped as to where to go next; any insight into this would be much appreciated.
I have created a trivial example project if anyone would be so kind as to take a look.
"Project Zip File...":https://drive.google.com/file/d/0B7ndWs6zmBPwb1dYcGExX2FmQTg/edit?usp=sharing