Custom3DLabel QML Type
그래프에 사용자 지정 레이블을 추가합니다. 더 보기...
| Import Statement: | import QtGraphs |
| In C++: | QCustom3DLabel |
| Inherits: |
- 상속된 멤버를 포함한 모든 멤버 목록
- Custom3DLabel은 Qt Graphs 3D용 QML 유형에 포함되어 있습니다.
속성
- backgroundColor : color
- backgroundVisible : bool
- borderVisible : bool
- facingCamera : bool
- font : font
- text : string
- textColor : color
신호
- backgroundColorChanged(color color)
- backgroundEnabledChanged(bool enabled)
- borderEnabledChanged(bool enabled)
- facingCameraChanged(bool enabled)
- fontChanged(font font)
- textChanged(string text)
- textColorChanged(color color)
상세 설명
사용자 지정 라벨의 텍스트, 글꼴, 위치, 크기 조정, 회전 및 색상을 설정할 수 있습니다. 또한 라벨의 테두리 및 배경의 표시 여부도 전환할 수 있습니다. 색상, 테두리 및 배경은 명시적으로 설정하지 않는 한 활성 테마에 의해 결정됩니다.
참고: 크기 조정 시 z 좌표는 영향을 미치지 않습니다. 동일한 x 및 y 좌표를 설정하면 원래 글꼴 크기가 유지됩니다.
속성 문서
backgroundColor : color
레이블 배경의 색상(활성화된 경우)입니다. 기본값은 "gray" 입니다.
backgroundVisible 를참조하세요 .
backgroundVisible : bool
레이블 배경을 표시할지 여부를 정의합니다. false 로 설정하면 backgroundColor 은 효과가 없습니다. 기본값은 true 입니다.
borderVisible : bool
레이블 테두리 표시 여부를 정의합니다. 기본값은 true 입니다.
facingCamera : bool
레이블이 항상 카메라를 향하도록 할지 여부를 정의합니다. 기본값은 false 입니다. true 으로 설정하면 rotation 은 아무런 영향을 미치지 않습니다.
font : font
레이블에 사용할 글꼴입니다. 기본값은 Font {family: "Arial"; pointSize: 20} 입니다. 특수 서식(예: 윤곽선)은 지원되지 않습니다.
text : string
레이블의 텍스트입니다. 서식 있는 텍스트는 지원되지 않습니다.
textColor : color
레이블 텍스트의 색상입니다. 활성화된 경우 레이블 테두리에도 영향을 줍니다. 기본값은 "white" 입니다.
borderVisible 를참조하세요 .
신호 문서
backgroundColorChanged(color color)
이 신호는 backgroundColor 가 color 로 변경될 때 발생합니다.
참고: 해당 핸들러는 onBackgroundColorChanged 입니다.
backgroundEnabledChanged(bool enabled)
이 신호는 backgroundEnabled가 enabled 로 변경될 때 발생합니다.
참고: 해당 핸들러는 onBackgroundEnabledChanged 입니다.
borderEnabledChanged(bool enabled)
이 신호는 borderEnabled가 enabled 로 변경될 때 발생합니다.
참고: 해당 핸들러는 onBorderEnabledChanged 입니다.
facingCameraChanged(bool enabled)
이 신호는 facingCamera 가 enabled 로 변경될 때 발생합니다.
참고: 해당 핸들러는 onFacingCameraChanged 입니다.
fontChanged(font font)
이 신호는 font 가 font 로 변경될 때 발생합니다.
참고: 해당 핸들러는 onFontChanged 입니다.
textChanged(string text)
이 신호는 text 가 text 로 변경될 때 발생합니다.
참고: 해당 핸들러는 onTextChanged 입니다.
textColorChanged(color color)
이 신호는 textColor 가 color 로 변경될 때 발생합니다.
참고: 해당 핸들러는 onTextColorChanged 입니다.
© 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.