I use QML TableView + own QAbstractTableModel and QSortFilterProxyModel. I've implemented sorting, but it works slowly. I've used these models without QML, but with QTableView - it worked perfectly. 30 000 items sort less then 1 secs. Can anybody help? Where problem is?
I've supposed that QML repaint all items while Model is sorting data (in every iteration). I've found solution, for sorting you have to:
For example
onSortIndicatorOrderChanged: {
model = null
MyModel.Sort(...)
model = MyModel
}
More details https://forum.qt.io/topic/52026/solved-sorting-qml-tableview-is-slow/4