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.