En esta página

Qt3DExtras::QExtrudedTextMesh Class

class Qt3DExtras::QExtrudedTextMesh

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

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

Esta clase está obsoleta. Se desaconseja encarecidamente su uso en código nuevo.

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 trasero izquierdo de la línea de base del texto.

Documentación de la propiedad

depth : float

Almacena la profundidad de extrusión del texto.

Funciones de acceso:

float depth() const
void setDepth(float depth)

Señal de notificación:

void depthChanged(float depth)

font : QFont

Contiene la fuente del texto.

La geometría de la malla se normaliza según 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. No se debe utilizar «pixelSize».

Funciones de acceso:

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

Señal de 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 de notificación:

void textChanged(const QString &text)

Documentación de las funciones de miembro

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

Crea un nuevo objeto `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.