RoleSorter QML Type
구성된 역할 이름에 따라 SortFilterProxyModel 에서 데이터를 정렬합니다. 더 보기...
Import Statement: | import QtQml.Models |
Since: | Qt 6.10 |
Inherits: | |
Status: | Preliminary |
이 유형은 개발 중이며 변경될 수 있습니다.
속성
- roleName : string
상세 설명
역할 분류기를 사용하면 소스 모델에 구성된 역할 이름에 따라 데이터를 정렬할 수 있습니다.
역할 분류기는 다음과 같이 정렬 필터 프록시 모델에서 구성할 수 있습니다,
SortFilterProxyModel { model: sourceModel sorters: [ RoleSorter { roleName: "firstname" } ] }
속성 문서
roleName : string |
이 속성에는 데이터를 정렬하는 데 사용되는 역할 이름이 저장됩니다.
기본값은 표시 역할입니다.
© 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.