I’ve used a QSortFilterProxy model to sort a given model and passed the QSortFilterProxy model to the QML’s GridView but only the filterRow member function gets called e.g. only filtering works. The sorting – lessThan member function, does not get called. Looking in Qt Widgets, QTableView has a setSortingEnabled member function that unlocks the sorting if a QSortFilterModel is provided to it. Is there the same way to unlock sorting in QML’s GridView, since I didn’t found such?
↧









