RoleSorter QML Type
SortFilterProxyModel のデータを、設定されたロール名に基づいてソートします。詳細...
| Import Statement: | import QtQml.Models |
| Since: | Qt 6.10 |
| Inherits: | |
| Status: | Preliminary |
この型は開発中であり、変更される可能性があります。
プロパティ
- roleName : string
詳細説明
RoleSorterを使用すると、ソースモデルで設定されたロール名に従ってデータをソートすることができます。
RoleSorterは、以下のようにソートフィルタプロキシモデルで設定することができます、
SortFilterProxyModel { model: sourceModel sorters: [ RoleSorter { roleName: "firstname" } ] }
プロパティの説明
roleName : string
このプロパティは、データの並べ替えに使用されるロール名を保持します。
デフォルト値は表示ロールです。
© 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.