Theme3D QML Type
그래프를 위한 시각적 스타일. 더 보기...
| Import Statement: | import QtDataVisualization 1.12 |
| Since: | QtDataVisualization 1.0 |
| In C++: | Q3DTheme |
| Status: | Deprecated |
이 유형은 더 이상 사용되지 않습니다. 새로운 코드에서는 이 유형을 사용하지 않는 것을 강력히 권장합니다.
속성
- ambientLightStrength : real
- backgroundColor : color
- backgroundEnabled : bool
- baseColors : list<ThemeColor>
- baseGradients : list<ColorGradient>
- colorStyle : Theme3D.ColorStyle
- font : font
- gridEnabled : bool
- gridLineColor : color
- highlightLightStrength : real
- labelBackgroundColor : color
- labelBackgroundEnabled : bool
- labelBorderEnabled : bool
- labelTextColor : color
- lightColor : color
- lightStrength : real
- multiHighlightColor : color
- multiHighlightGradient : ColorGradient
- singleHighlightColor : color
- singleHighlightGradient : ColorGradient
- type : Theme3D.Theme
- windowColor : color
상세 설명
이 유형은 그래프 전체에 영향을 미치는 시각적 속성을 지정하는 데 사용됩니다. 그대로 사용하거나 자유롭게 수정할 수 있는 여러 가지 기본 제공 테마가 있습니다.
다음 속성은 Abstract3DSeries 속성을 사용하여 시리즈에서 명시적으로 설정함으로써 재정의할 수 있습니다: baseColors, baseGradients 및 colorStyle.
Theme3D.ThemeUserDefined 열거형 값을 사용하여 테마를 처음부터 새로 만들 수도 있습니다.
기본 테마
다음 표에는 테마에 의해 제어되는 속성과 Theme3D.ThemeUserDefined 의 기본값이 나열되어 있습니다.
| 속성 | 기본값 |
|---|---|
| ambientLightStrength | 0.25 |
| backgroundColor | "black". 자세한 내용은 color 을 참조하십시오. |
| backgroundEnabled | true |
| baseColors | "black" |
| baseGradients | QLinearGradient. 본질적으로 완전히 검은색입니다. |
| colorStyle | ColorStyleUniform |
| font | font |
| gridEnabled | true |
| gridLineColor | "white" |
| highlightLightStrength | 7.5 |
| labelBackgroundColor | "회색" |
| labelBackgroundEnabled | true |
| labelBorderEnabled | true |
| labelTextColor | "흰색" |
| lightColor | "흰색" |
| lightStrength | 5.0 |
| multiHighlightColor | "파랑" |
| multiHighlightGradient | QLinearGradient. 사실상 완전히 검은색이다. |
| singleHighlightColor | "빨강" |
| singleHighlightGradient | QLinearGradient. 사실상 완전히 검은색입니다. |
| windowColor | "black" |
사용 예시
수정 없이 내장 테마를 사용하는 경우:
Scatter3D {
...
theme: Theme3D { type: Theme3D.ThemeRetro }
...
}내장 테마를 사용하면서 일부 속성을 수정하는 경우:
Bars3D {
...
theme: Theme3D {
type: Theme3D.ThemeRetro
labelBorderEnabled: true
font.pointSize: 35
labelBackgroundEnabled: false
}
...
}사용자 정의 테마를 사용하는 경우:
Surface3D {
...
theme: Theme3D {
ambientLightStrength: 0.5
backgroundColor: "red"
backgroundEnabled: true
baseColor: "blue"
colorStyle: Theme3D.ColorStyleUniform
font.family: "Lucida Handwriting"
font.pointSize: 35
gridEnabled: false
gridLineColor: "black"
highlightLightStrength: 0.5
labelBackgroundColor: "black"
labelBackgroundEnabled: true
labelBorderEnabled: false
labelTextColor: "white"
lightColor: "yellow"
lightStrength: 0.4
multiHighlightColor: "green"
singleHighlightColor: "darkRed"
windowColor: "white"
}
...
}Theme3D 열거형에 대해서는 Q3DTheme::ColorStyle 및 Q3DTheme::Theme 을 참조하십시오.
속성 설명서
ambientLightStrength : real
그래프 전체에 적용되는 주변광 강도입니다. 이 값은 빛의 위치와 관계없이 그래프 전체에 걸쳐 색상이 얼마나 고르고 밝게 표시될지를 결정합니다. 이 값은 0.0 에서 1.0 사이여야 합니다.
backgroundColor : color
그래프 배경색.
backgroundEnabled : bool
backgroundColor 의 값을 사용하여 배경을 그릴지 여부를 지정합니다.
baseColors : list<ThemeColor>
그래프 내 모든 객체에 사용될 기본 색상 목록으로, 시리즈별로 적용됩니다. 색상 수보다 시리즈 수가 더 많은 경우, 색상 목록은 순환하여 목록의 첫 번째 색상부터 다시 시작됩니다. ` colorStyle `가 ` Theme3D.ColorStyleUniform`가 아닌 경우, 이 설정은 즉시 적용되지 않습니다.
시리즈에서 ` Abstract3DSeries.baseColor `을 명시적으로 설정하여 이 동작을 재정의할 수 있습니다.
baseGradients : list<ColorGradient>
그래프 내 모든 객체에 적용될 기본 그라디언트 목록으로, 시리즈별로 지정됩니다. 시리즈 수가 그라디언트 수보다 많을 경우, 그라디언트 목록은 순환하여 목록의 첫 번째 그라디언트부터 다시 시작됩니다.
colorStyle 가 ` Theme3D.ColorStyleUniform`로 설정된 경우, 이 설정은 즉시 적용되지 않습니다.
이 값은 시리즈에서 ` Abstract3DSeries.baseGradient `을 명시적으로 설정하여 재정의할 수 있습니다.
colorStyle : Theme3D.ColorStyle
그래프 색상의 스타일입니다. ` Q3DTheme::ColorStyle ` 열거형의 값 중 하나입니다.
이 값은 시리즈에서 Abstract3DSeries.colorStyle 을 명시적으로 설정하여 재정의할 수 있습니다.
Q3DTheme::ColorStyle도 참조하십시오 .
font : font
라벨에 사용할 글꼴을 설정합니다.
gridEnabled : bool
격자선이 그려질지 여부를 지정합니다. 이 값은 모든 격자선에 적용됩니다.
gridLineColor : color
격자선의 색상.
참고: 투명도는 지원되지 않으며, 이를 사용할 경우 정의되지 않은 동작이 발생합니다.
highlightLightStrength : real
선택한 오브젝트의 반사광 강도입니다. 이 값은 0.0 과 10.0 사이의 범위여야 합니다.
labelBackgroundColor : color
라벨 배경색입니다. ` labelBackgroundEnabled `가 ` false`인 경우 이 설정은 적용되지 않습니다.
labelBackgroundEnabled : bool
라벨을 labelBackgroundColor (알파 값 포함)을 사용하는 배경과 함께 그릴지, 아니면 완전히 투명한 배경과 함께 그릴지 지정합니다. 배경이 있는 라벨은 가장 긴 라벨을 기준으로 축별로 동일한 크기로 그려지며, 텍스트는 라벨 중앙에 정렬됩니다. 배경이 없는 라벨은 있는 그대로 그려지며, 그래프 내 위치에 따라 왼쪽 또는 오른쪽으로 정렬됩니다.
labelBorderEnabled : bool
배경이 있는 레이블에 대해 레이블 테두리를 그릴지 여부를 지정합니다. ` labelBackgroundEnabled `가 ` false`인 경우에는 효과가 없습니다.
labelTextColor : color
라벨에 사용되는 글꼴의 색상.
lightColor : color
Scene3D에서 정의된 주변광 및 반사광의 색상입니다.
lightStrength : real
그래프 전체에 대한 스페큘러 광도입니다. 이 값은 0.0 과 10.0 사이여야 합니다.
이 값은 Scene3D에 지정된 조명에 영향을 미칩니다.
multiHighlightColor : color
선택된 객체의 강조 표시 색상입니다. ` selectionMode `에 ` AbstractGraph3D.SelectionRow ` 또는 ` AbstractGraph3D.SelectionColumn ` 플래그가 설정된 경우 사용됩니다.
참고: 투명도는 지원되지 않으며, 이를 사용할 경우 정의되지 않은 동작이 발생합니다.
multiHighlightGradient : ColorGradient
선택된 객체에 적용되는 하이라이트 그라데이션입니다. ` selectionMode `에 ` AbstractGraph3D.SelectionRow ` 또는 ` AbstractGraph3D.SelectionColumn ` 플래그가 설정된 경우 사용됩니다.
참고: 투명도는 지원되지 않으며, 이를 사용할 경우 정의되지 않은 동작이 발생합니다.
singleHighlightColor : color
선택된 객체의 강조 표시 색상입니다. ` selectionMode `에 ` AbstractGraph3D.SelectionItem ` 플래그가 설정된 경우 사용됩니다.
참고: 투명도는 지원되지 않으며, 이를 사용할 경우 정의되지 않은 동작이 발생합니다.
singleHighlightGradient : ColorGradient
선택된 객체의 하이라이트 그라데이션입니다. ` selectionMode `에 ` AbstractGraph3D.SelectionItem ` 플래그가 설정된 경우 사용됩니다.
참고: 투명도는 지원되지 않으며, 이를 사용할 경우 정의되지 않은 동작이 발생합니다.
type : Theme3D.Theme
테마의 유형입니다. 유형이 설정되지 않은 경우, 유형은 ` Theme3D.ThemeUserDefined`입니다. 항목이 생성된 후 테마 유형을 변경하면 테마의 다른 모든 속성이 미리 정의된 테마에서 지정한 값으로 변경됩니다. 그래프의 활성 테마 유형을 변경하면 연결된 모든 시리즈가 새로운 테마를 사용하도록 재설정됩니다.
windowColor : color
그래프가 그려지는 애플리케이션 창의 색상입니다.
© 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.