SystemPalette QML Type
Qt 팔레트에 대한 액세스를 제공합니다. 더 보기...
Import Statement: | import QtQuick |
속성
- accent : color
(since 6.7)
- alternateBase : color
- base : color
- button : color
- buttonText : color
- colorGroup : enumeration
- dark : color
- highlight : color
- highlightedText : color
- light : color
- mid : color
- midlight : color
- placeholderText : color
(since 6.2)
- shadow : color
- text : color
- window : color
- windowText : color
상세 설명
SystemPalette 유형은 Qt 애플리케이션 팔레트에 대한 액세스를 제공합니다. 이것은 애플리케이션 창, 버튼 및 기타 기능에 사용되는 표준 색상에 대한 정보를 제공합니다. 이러한 색상은 세 가지 색상 그룹으로 그룹화됩니다: active
, inactive
, 그리고 disabled
. 색상 그룹과 SystemPalette에서 제공하는 속성에 대한 자세한 내용은 QPalette 설명서를 참조하십시오.
이를 사용하여 보다 네이티브한 모양과 느낌을 제공하는 방식으로 항목에 색상을 지정할 수 있습니다.
다음 예에서는 Active
색상 그룹에서 팔레트를 만들고 이를 사용하여 창 및 텍스트 항목의 색상을 적절하게 지정합니다:
import QtQuick Rectangle { SystemPalette { id: myPalette; colorGroup: SystemPalette.Active } width: 640; height: 480 color: myPalette.window Text { anchors.fill: parent text: "Hello!"; color: myPalette.windowText } }
QPalette 를참조하세요 .
속성 문서
accent : color |
alternateBase : color |
현재 색상 그룹의 대체 기본색입니다.
QPalette::ColorRole 를참조하십시오 .
base : color |
현재 색상 그룹의 기본색입니다.
QPalette::ColorRole 를참조하십시오 .
button : color |
현재 색상 그룹의 버튼 색상입니다.
buttonText : color |
현재 색상 그룹의 버튼 텍스트 전경색입니다.
colorGroup : enumeration |
색상표의 색상 그룹입니다. 다음 중 하나일 수 있습니다:
상수 | 설명 |
---|---|
SystemPalette.Active | (기본값) QPalette::Active |
SystemPalette.Inactive | QPalette::Inactive |
SystemPalette.Disabled | QPalette::Disabled |
dark : color |
현재 색상 그룹의 어두운 색상입니다.
highlight : color |
현재 색상 그룹의 하이라이트 색상입니다.
highlightedText : color |
현재 색상 그룹의 강조 표시된 텍스트 색상입니다.
light : color |
현재 색상 그룹의 밝은 색상입니다.
mid : color |
현재 색상 그룹의 중간 색상입니다.
midlight : color |
현재 색상 그룹의 중간색입니다.
placeholderText : color |
shadow : color |
현재 색상 그룹의 그림자색입니다.
QPalette::ColorRole 를참조하십시오 .
text : color |
현재 색상 그룹의 텍스트 색입니다.
QPalette::ColorRole 를참조하십시오 .
window : color |
현재 색상 그룹의 창(일반 배경) 색상입니다.
windowText : color |
현재 색상 그룹의 창 텍스트(일반 전경색) 색상입니다.
© 2025 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.