StyleKitDebug QML Type
컨트롤의 스타일 프로퍼티가 어떻게 확인되는지 추적합니다. 더 보기...
| Import Statement: | import Qt.labs.StyleKit |
속성
상세 설명
StyleKitDebug는 스타일 속성 읽기를 디버그 출력에 기록하는 진단 도구입니다. 특히 여러 개의 themes 또는 style variations 이 포함된 복잡한 스타일에서 컨트롤이 특정 모양으로 끝나는 이유를 이해하는 데 유용합니다.
StyleKit.debug 을 통해 액세스할 수 있습니다.
참고: 이 도구는 실험 단계입니다. 활성화하면 성능이 심각하게 저하되므로 디버깅용으로만 사용해야 합니다. 출력 형식은 향후 버전에서 변경될 수 있습니다.
추적을 시작하려면 control 프로퍼티에 Control 아이디를 할당합니다:
StyleKit.debug.control = myButton
확인된 각 속성은 값의 출처와 확인된 대상을 보여주는 한 줄로 인쇄됩니다:
[read] StyleReader[Normal].button.background.color -> button[Normal] = #ff0000
filter 을 사용하여 출력을 관심 있는 프로퍼티로 제한합니다.
참고: Qt.labs 모듈의 유형은 향후 버전에서 호환성을 보장하지 않습니다.
StyleKit::debug 를참조하세요 .
속성 문서
control : Item
설정하면 StyleKit 이 항목에 대한 모든 스타일 속성 읽기를 디버그 출력에 기록합니다. 추적을 중지하려면 null 로 설정합니다.
filter 를참조하세요 .
filter : string
디버그 출력을 필터링하는 데 사용되는 정규식입니다. 패턴과 일치하는 줄만 인쇄됩니다. 기본적으로 모든 출력이 표시됩니다.
예를 들어 배경 색의 읽기만 표시합니다:
StyleKit.debug.filter = "background.color"
control 를참조하세요 .
© 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.