GroupingModel QML Type

Proxy model grouping rows into submodels by value of given role. More...

Import Statement: import QtModelsToolkit .

Properties

Detailed Description

The proxy groups consecutive rows with the same value of role groupingRoleName into submodel and exposed under role name submodelRoleName. Only the first row from the group remains in the top-level model (with additional role holding the grouped submodel).

Property Documentation

groupingRoleName : string

This property holds the role name that the sorter is proxy is using group rows of the source model.


submodelRoleName : string

This property holds the role name that is used to expose the submodel with groupped rows.