이 페이지에서

Qt3DExtras::QExtrudedTextMesh Class

class Qt3DExtras::QExtrudedTextMesh

3D 돌출 처리된 텍스트 메시. 더 보기...

헤더: #include <Qt3DExtras/QExtrudedTextMesh>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras)
qmake: QT += 3dextras
QML에서: ExtrudedTextMesh
상속: Qt3DRender::QGeometryRenderer
상태: 사용 중단됨

이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 않는 것을 강력히 권장합니다.

속성

공개 함수

QExtrudedTextMesh(Qt3DCore::QNode *parent = nullptr)
float depth() const
QFont font() const
QString text() const

공개 슬롯

void setDepth(float depth)
void setFont(const QFont &font)
void setText(const QString &text)

신호

void depthChanged(float depth)
void fontChanged(const QFont &font)
void textChanged(const QString &text)

상세 설명

메시의 원점은 텍스트 기준선의 뒤쪽 왼쪽 끝입니다.

속성 설명

depth : float

텍스트의 돌출 깊이를 저장합니다.

액세스 함수:

float depth() const
void setDepth(float depth)

알림 신호:

void depthChanged(float depth)

font : QFont

텍스트의 글꼴을 저장합니다.

메쉬 지오메트리는 글꼴의 pointSize에 따라 정규화되므로, pointSize 값이 클수록 텍스트가 더 커지는 것이 아니라 더 매끄러워집니다. pixelSize는 사용해서는 안 됩니다.

액세스 함수:

QFont font() const
void setFont(const QFont &font)

알림 신호:

void fontChanged(const QFont &font)

text : QString

메시에 사용되는 텍스트를 저장합니다.

액세스 함수:

QString text() const
void setText(const QString &text)

알림 신호:

void textChanged(const QString &text)

멤버 함수 문서

[explicit] QExtrudedTextMesh::QExtrudedTextMesh(Qt3DCore::QNode *parent = nullptr)

parent 을 사용하여 새로운 QText3DMesh를 생성합니다.

© 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.