Custom3DLabel QML Type
그래프에 사용자 지정 레이블을 추가합니다. 더 보기...
| Import Statement: | import QtGraphs |
| In C++: | QCustom3DLabel |
| Inherits: |
- 상속된 멤버를 포함한 모든 멤버 목록
- Custom3DLabel은 3D용Qt Graphs 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도 참조하십시오 .
Signal 문서
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.