Sorter QML Type

Abstract base type providing functionality common to sorters. 更多...

import 語句: import QtQml.Models
Since: Qt 6.10
繼承:

QtObject

繼承者:

FunctionSorter , RoleSorter ,和 StringSorter

狀態: 預備

This type is under development and is subject to change.

特性

詳細描述

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

特性文檔編製

column : int

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

默認值為 0 .

enabled : bool

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

默認值為 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.

默認值為 -1 .

sortOrder : Qt::SortOrder

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

默認值為 Qt::AscendingOrder .