Grouping ListView elements
-
Sure, that is very possible. Use a [[doc:QSortFilterProxyModel]] between your model and your view, and sort on the appropriate role and column. If you need to sort within the groups too, you will have to resort to subclassing and reimplementing the virtual bool lessThan ( const QModelIndex & left, const QModelIndex & right ) const function.