StringSorter QML Type
SortFilterProxyModel のデータをロケールの順序に基づいてソートする。さらに...
Import Statement: | import QtQml.Models |
Since: | Qt 6.10 |
Inherits: | |
Status: | Preliminary |
この型は開発中であり、変更される可能性があります。
プロパティ
- caseSensitivity : Qt::CaseSensitivity
- ignorePunctuation : bool
- locale : Locale
- numericMode : bool
詳細説明
StringSorter を使用すると、ソースモデルで設定されているロール名に従ってデータをソートすることができます。StringSorter は、ローカライズされた照合アルゴリズムに従って文字列を比較します。
StringSorter は、ソート・フィルター・プロキシ・モデルで以下のように構成することができます、
SortFilterProxyModel { model: sourceModel sorters: [ StringSorter { roleName: "name" } ] }
プロパティ Documentation
caseSensitivity : Qt::CaseSensitivity |
このプロパティは、ソータの大文字と小文字の区別を保持します。
デフォルト値はQt::CaseSensitive です。
ignorePunctuation : bool |
このプロパティは、ソーターが句読点を無視するかどうかを保持する。ignorePunctuation
がtrue
の場合、ソート順を決定する際に句読点文字と記号は無視される。
デフォルト値はfalse
です。
locale : Locale |
このプロパティはソータのロケールを保持します。
デフォルト値はQLocale::system() です。
numericMode : bool |
このプロパティは、ソータの数値モードが有効かどうかを保持する。
デフォルト値はfalse
。
© 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.