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" } ] }
속성 문서
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.