Sorter QML Type
Abstract base type providing functionality common to sorters. More...
Import Statement: | import QtQml.Models |
Since: | Qt 6.10 |
Inherits: | |
Inherited By: | |
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
.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.