StringSorter QML Type
SortFilterProxyModel 의 데이터를 로캘의 정렬 순서에 따라 정렬합니다. 더 보기...
| Import Statement: | import QtQml.Models |
| Since: | Qt 6.10 |
| Inherits: | |
| Status: | Technology preview |
이 유형은 기술 미리보기 단계에 있으며 변경될 수 있습니다.
속성
- caseSensitivity : Qt::CaseSensitivity
- ignorePunctuation : bool
- locale : Locale
- numericMode : bool
상세 설명
StringSorter를 사용하면 소스 모델에 구성된 역할 이름에 따라 데이터를 정렬할 수 있습니다. StringSorter는 현지화된 정렬 알고리즘에 따라 문자열을 비교합니다.
StringSorter는 아래와 같이 정렬 필터 프록시 모델에서 구성할 수 있습니다.
SortFilterProxyModel {
sourceModel: model
sorters: [
StringSorter { roleName: "name" }
]
}속성 설명
caseSensitivity : Qt::CaseSensitivity
이 속성은 정렬기의 대소문자 구분 여부를 지정합니다.
기본값은 ` Qt::CaseSensitive`입니다.
ignorePunctuation : bool
이 속성은 정렬기가 구두점을 무시할지 여부를 결정합니다. ignorePunctuation 가 true 인 경우, 정렬 순서를 결정할 때 구두점 및 기호가 무시됩니다.
기본값은 ` false`입니다.
locale : Locale
이 속성은 정렬기의 로케일을 저장합니다.
기본값은 QLocale::system()입니다.
numericMode : bool
이 속성은 정렬기의 숫자 모드가 활성화되어 있는지 여부를 나타냅니다.
기본값은 ` false`입니다.
© 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.