QSortFilterProxyModel updating too frequently
I faced some problems while implementing my SortFilterProxyModel, based on QSortFilterProxyModel.
This is for QML project, similar to this: "Qt Digia Blog | Qt Weekly #6: Sorting and filtering a TableView":http://blog.qt.digia.com/blog/2014/04/16/qt-weekly-6-sorting-and-filtering-a-tableview
but I suppose this is not connected with widgets or qml part, just connected with QSortFilterProxyModel implementation.
The problem is the model updating too frequently, ignoring what roles changing
(just update every role, when some role changed)
I guess this is connected with this bug: "QTBUG-35440":https://bugreports.qt-project.org/browse/QTBUG-35440
As you can see in bug comments, method
@void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles = QVector<int> ())@
for QSortFilterProxyModel always returning empty roles vector.
Also looks like Bruno Carbal faced similar problems: "his comment on Qt Digia Blog post":http://blog.qt.digia.com/blog/2014/04/16/qt-weekly-6-sorting-and-filtering-a-tableview/#comment-1193444
Can somebody help me? For example, approve that I'm right and thinking the right way?
Thank you for your time and help.