Sorts rows based on a source model role More...
Import Statement: | import . |
Inherits: | |
Inherited By: |
A RoleSorter is a simple Sorter that sorts rows based on a source model role.
In the following example, rows with be sorted by their lastName
role :
SortFilterProxyModel {
sourceModel: contactModel
sorters: RoleSorter { roleName: "lastName" }
}
This property holds the role name that the sorter is using to query the source model's data when sorting items.