AbstractStyle QML Type
Style 와 Theme 모두에 공통된 속성을 가진 추상 기본 유형입니다. 더 보기...
| Import Statement: | import Qt.labs.StyleKit |
| Inherits: | |
| Inherited By: |
속성
상세 설명
AbstractStyle에는 Style 와 Theme 모두에 공통적인 글꼴 및 팔레트와 같은 프로퍼티가 포함되어 있습니다.
참고: Qt.labs 모듈의 유형은 향후 버전에서 호환성을 보장하지 않습니다.
속성 문서
fonts : StyleFont
컨트롤별 구성을 위한 그룹화된 속성 fonts. 버튼, textField 또는 레이블과 같은 개별 컨트롤 유형에 대해 글꼴을 설정할 수 있습니다.
Style { fonts { system.pixelSize: 14 button.bold: true textField.family: "Monospace" } }
palettes : StylePalette
컨트롤별 구성을 위한 그룹화된 속성 palettes. 팔레트는 시스템 전체 또는 개별 컨트롤 유형에 대해 설정할 수 있습니다.
light: Theme {
palettes {
system {
window: "gainsboro"
windowText: "black"
}
button.buttonText: "black"
textField.text: "#4e4e4e"
}
}© 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.