Got a custom QAbstractTableModel, and in it I implemented my own sort method based on column and order.
its fine.
But then I realized that the data are sorted only when user clicks column headers, not when table gets repopulated by new data...
So I am fixing it now along with remembering sorting behaviour between restarts. So that if user clicked sorted by date its sorted by date next time application starts.
But i also came over SortFilterProxyModel that I could implement. Is that the better way?
The speed is my most important aspect, as my program is just a search in a database showing results in tableview as you type queries, and it needs to be instant.
So not sure if one way or the other is more qualified.
Bookmarks