Sorter QML Type

Abstract base type providing functionality common to sorters. More...

Import Statement: import QtQml.Models
Since: Qt 6.10
Inherits:

QtObject

Inherited By:

FunctionSorter, RoleSorter, and StringSorter

Status: Preliminary

This type is under development and is subject to change.

Properties

Detailed Description

Sorter provides a set of common properties for all the sorters that they inherit from.

Property Documentation

column : int

This property holds the column that this sorter is applied to.

The default value is 0.


enabled : bool

This property enables the SortFilterProxyModel to consider this sorter while sorting the model data.

The default value is true.


priority : int

This property holds the priority that is given to this sorter compared to other sorters. The lesser value results in a higher priority and the higher value results in a lower priority.

The default value is -1.


sortOrder : Qt::SortOrder

This property holds the order used by SortFilterProxyModel when sorting the model data.

The default value is Qt::AscendingOrder.