QAbstractProxyModel subclassing and row selection

  • Hi,

    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.

    Kind regards


    "Project Zip File...":

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.