이 페이지에서

AbstractStyle QML Type

Style 와 Theme 에 공통적으로 적용되는 속성을 가진 추상 기본 유형입니다. 더 보기...

Import Statement: import Qt.labs.StyleKit
Inherits:

StylableControls

Inherited By:

Style and Theme

Status: Technology preview

이 유형은 기술 미리보기 단계에 있으며 변경될 수 있습니다.

속성

상세 설명

AbstractStyle에는 Style 와 Theme 모두에 공통적으로 적용되는 글꼴 및 팔레트와 같은 속성이 포함되어 있습니다.

참고: Qt.labs 모듈의 타입은 향후 버전에서 호환성이 유지될 것이라고 보장되지 않습니다.

속성 문서

fonts : StyleFont

컨트롤별로 구성하기 위한 그룹화된 속성 fonts. 버튼, 텍스트 필드, 레이블 등 개별 컨트롤 유형에 대해 글꼴을 설정할 수 있습니다.

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.