Sorter QML Type
提供排序器通用功能的抽象基类。更多...
| Import Statement: | import QtQml.Models |
| Since: | Qt 6.10 |
| Inherits: | |
| Inherited By: | |
| Status: | Technology preview |
此类型处于技术预览阶段,内容可能会有变动。
属性
详细说明
`Sorter` 为所有从其继承的排序器提供了一组通用属性。
属性文档
column : int
该属性指定应用此排序器的列。
默认值为0 。
enabled : bool
此属性可使“SortFilterProxyModel ”在对模型数据进行排序时将此排序器纳入考虑范围。
默认值为true 。
priority : int
该属性用于指定此排序器相对于其他排序器的优先级。数值越小,优先级越高;数值越大,优先级越低。
默认值为-1 。
sortOrder : Qt::SortOrder
该属性存储了SortFilterProxyModel 在对模型数据进行排序时使用的排序顺序。
默认值为Qt::AscendingOrder 。
© 2026 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.