Important: Please read the Qt Code of Conduct -

Sorting with QSortFilterProxyModel

  • I have implemented a SortFilterproxyModel into my list view following the steps in the Nurmi's Blog post found here: [](link url)

    Everything works fine, excecpt that after a few times of changing the sort column of my ListView the view gets a little wacked - lots of spaces, text written over text. I am using Qt 5.5 and have tried everything clearing the data in my cpp and reapplying the source, calling dataChanged for the entire data set, issuing beginResetModel and endResetModel. But nothing seems to help. The screen screw up seems to be at random.

    Does anyone know of a way I can cleanly reset the data after modifying the sort column or sort order.

    Any help most appreciated.


Log in to reply