StyleKit QML Type
현재 스타일을 설정하고 액세스하기 위한 싱글톤입니다. 더 보기...
| Import Statement: | import Qt.labs.StyleKit |
속성
- debug : StyleKitDebug
- style : Style
- styleUrl : string
- transitionsEnabled : bool
방법
- bool styleLoaded()
자세한 설명
StyleKit 은 애플리케이션 설정을 위한 싱글톤입니다 Style.
// Main.qml import QtQuick import Qt.labs.StyleKit ApplicationWindow { id: app width: 1024 height: 800 visible: true // Assign the style to be used StyleKit.style: PlainStyle {} // Controls are used as normal Column { anchors.fill: parent anchors.margins: 10 spacing: 10 Button { text: "Button" } Slider { width: 200 } } }
또한 전역 StyleKit 구성 및 디버깅을 위한 속성도 제공합니다.
참고: Qt.labs 모듈의 유형은 향후 버전에서 호환성을 보장하지 않습니다.
Style 및 StyleVariation 을참조하십시오 .
속성 문서
debug : StyleKitDebug [read-only]
특정 Control 에 대한 스타일 속성을 추적하는 데 사용할 수 있는 런타임 디버깅 도구입니다.
style : Style
애플리케이션의 활성 스타일입니다.
모든 애플리케이션에 적용하려면 Style 인스턴스로 설정합니다. Qt Quick Controls.
// Main.qml import QtQuick import Qt.labs.StyleKit ApplicationWindow { id: app width: 1024 height: 800 visible: true // Assign the style to be used StyleKit.style: PlainStyle {} // Controls are used as normal Column { anchors.fill: parent anchors.margins: 10 spacing: 10 Button { text: "Button" } Slider { width: 200 } } }
참고: 최상의 시작 성능을 위해 루트 ApplicationWindow 에서 스타일을 설정한 후 하위 컨트롤을 설정하세요.
styleUrl : string
URL에서 Style 을 로드하는 style 의 대안입니다.
style도 참조하세요 .
transitionsEnabled : bool
전역적으로 전환을 활성화할지 여부를 제어합니다.
현재 스타일의 모든 전환을 비활성화하려면 false 로 설정합니다.
기본값은 true 입니다.
ControlStyle::transition 를참조하세요 .
메서드 문서
bool styleLoaded()
활성 style 및 현재 theme 로드가 모두 완료되면 true 를 반환합니다. 이 함수는 확인된 스타일 속성에 의존하는 초기화 로직을 지연시키는 데 사용할 수 있습니다.
© 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.