En esta página

Qt3DExtras::QExtrudedTextMesh Class

class Qt3DExtras::QExtrudedTextMesh

Una malla de texto extruida en 3D. Más...

Cabecera: #include <Qt3DExtras/QExtrudedTextMesh>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras)
qmake: QT += 3dextras
En QML: ExtrudedTextMesh
Hereda: Qt3DRender::QGeometryRenderer
Status: Obsoleto

Propiedades

Funciones públicas

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

Ranuras públicas

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

Señales

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

Descripción detallada

El origen de la malla es el extremo posterior izquierdo de la línea de base del texto.

Documentación de propiedades

depth : float

Mantiene la profundidad de extrusión del texto.

Funciones de acceso:

float depth() const
void setDepth(float depth)

Señal del notificador:

void depthChanged(float depth)

font : QFont

Contiene la fuente del texto.

La geometría de la malla está normalizada por el pointSize de la fuente, por lo que un pointSize mayor dará como resultado un texto más suave, en lugar de más grande. pixelSize no debe utilizarse.

Funciones de acceso:

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

Señal del notificador:

void fontChanged(const QFont &font)

text : QString

Contiene el texto utilizado para la malla.

Funciones de acceso:

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

Señal del notificador:

void textChanged(const QString &text)

Documentación de la función miembro

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

Construye un nuevo QText3DMesh con parent.

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