Virtual Sort never gets called on QAbstractListModel derived class
-
There is no QSortFilterProxyModel. I am using QListView, QAbstractListModel and QAbstractItemDelegate.
How can the view be sorted? QListView (and its parent classes) doesn't have any sorting. Is there a method I am missing?
Ideally I don't want to call it directly. I want it to be sorted whenever i make changes like adding items to it. etc.
-
By default, a list view is not sorted, so why should it be called if you don't call it? Sort is something that can be used, but if you don't call it, the list v9iew does not!
In a list view, you have to call sort by hand.
A table view has a sorting property, as it can sort by different columns.