QText2DEntity Class
class Qt3DExtras::QText2DEntityQText2DEntity를 사용하면 3D 공간에서 2D 텍스트를 생성할 수 있습니다. 더 보기...
Header: | #include <Qt3DExtras/QText2DEntity> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
qmake: | QT += 3dextras |
QML에서: | Text2DEntity |
상속합니다: | Qt3DCore::QEntity |
상태: | Deprecated |
속성
공공 기능
Qt::Alignment | alignment() const |
QColor | color() const |
QFont | font() const |
float | height() const |
void | setAlignment(Qt::Alignment alignment) |
void | setColor(const QColor &color) |
void | setFont(const QFont &font) |
void | setHeight(float height) |
void | setText(const QString &text) |
void | setWidth(float width) |
QString | text() const |
float | width() const |
신호
void | colorChanged(const QColor &color) |
void | fontChanged(const QFont &font) |
void | heightChanged(float height) |
void | textChanged(const QString &text) |
void | widthChanged(float width) |
상세 설명
QText2DEntity는 텍스트를 XY 평면에서 삼각형으로 렌더링합니다. 지오메트리는 지정된 너비와 높이의 직사각형에 맞춰집니다. 결과 지오메트리가 지정된 너비보다 넓으면 나머지는 새 줄에 렌더링됩니다.
엔티티는 변형 컴포넌트를 추가하여 장면에 배치할 수 있습니다.
QText2DEntity는 글리프의 모양과 지정된 색상을 사용하는 솔리드 머티리얼을 기반으로 지오메트리를 생성합니다.
속성 문서
alignment : Qt::Alignment
Qt Quick 장면에 표시되는 텍스트 항목의 맞춤을 반환합니다.
기본 맞춤은 왼쪽 위 맞춤입니다.
함수에 액세스합니다:
Qt::Alignment | alignment() const |
void | setAlignment(Qt::Alignment alignment) |
color : QColor
Qt Quick 장면에 표시되는 텍스트 항목의 색상을 유지합니다.
기능에 접근합니다:
QColor | color() const |
void | setColor(const QColor &color) |
알림 신호:
void | colorChanged(const QColor &color) |
font : QFont
Qt Quick 장면에 표시되는 텍스트 항목의 글꼴을 보유합니다.
기능에 접근합니다:
QFont | font() const |
void | setFont(const QFont &font) |
알림 신호:
void | fontChanged(const QFont &font) |
height : float
Qt Quick 장면에 표시되는 텍스트 항목의 높이를 반환합니다.
함수에 액세스합니다:
float | height() const |
void | setHeight(float height) |
알림 신호:
void | heightChanged(float height) |
text : QString
Qt Quick 장면에 표시되는 텍스트를 보유합니다.
기능에 액세스합니다:
QString | text() const |
void | setText(const QString &text) |
알림 신호:
void | textChanged(const QString &text) |
width : float
Qt Quick 장면에 표시되는 텍스트 항목의 너비를 반환합니다.
함수 액세스:
float | width() const |
void | setWidth(float width) |
알림 신호:
void | widthChanged(float width) |
© 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.