RegExpFilter QML Type
SortFilterProxyModel 의 데이터를 역할 값과 정규 표현식을 대조하여 필터링합니다. 더 보기...
| Import Statement: | import QtQml.Models |
| Since: | Qt 6.12 |
| Inherits: | |
| Status: | Technology preview |
이 유형은 기술 미리 보기 단계에 있으며 변경될 수 있습니다.
속성
- regExp : regexp
상세 설명
RegExpFilter를 사용하면 지정된 역할에 대해 정규식 일치를 통해 모델 데이터를 필터링할 수 있습니다.
regExp 에는 JavaScript 정규 표현식 리터럴을 직접 할당할 수 있습니다:
SortFilterProxyModel {
sourceModel: processModel
filters: RegExpFilter {
roleName: "userId"
regExp: /root/i
}
}속성 문서
regExp : regexp
이 속성은 데이터를 필터링하는 데 사용되는 정규식을 저장합니다. JavaScript 정규식 리터럴을 직접 할당할 수 있습니다.
regExp의 패턴이 비어 있으면 필터가 비활성화되어 모든 행이 통과됩니다.
© 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.