Sorts rows based on if they match filters More...
| Import Statement: | import . |
| Inherits: |
A FilterSorter is a Sorter that orders row matching its filters before the rows not matching the filters.
In the following example, rows with their favorite role set to true will be ordered at the beginning :
SortFilterProxyModel {
sourceModel: contactModel
sorters: FilterSorter {
ValueFilter { roleName: "favorite"; value: true }
}
}
This property holds the list of filters for this filter sorter. If a row match all this FilterSorter's filters, it will be ordered before rows not matching all the filters.
See also Filter.