En esta página

Qt3DExtras::QExtrudedTextGeometry Class

class Qt3DExtras::QExtrudedTextGeometry

La clase QExtrudedTextGeometry permite crear un texto extruido en 3D en el espacio tridimensional. Más información...

Encabezado: #include <Qt3DExtras/QExtrudedTextGeometry>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras)
qmake: QT += 3dextras
En QML: ExtrudedTextGeometry
Heredado de: Qt3DCore::QGeometry
Estado: Obsoleto

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

Propiedades

Funciones públicas

QExtrudedTextGeometry(Qt3DCore::QNode *parent = nullptr)
float extrusionLength() const
QFont font() const
Qt3DCore::QAttribute *indexAttribute() const
Qt3DCore::QAttribute *normalAttribute() const
Qt3DCore::QAttribute *positionAttribute() const
QString text() const

Ranuras públicas

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

Señales

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

Descripción detallada

La clase `QExtrudedTextGeometry` se utiliza principalmente de forma interna en `QText3DMesh`, pero también puede emplearse en subclases personalizadas de ` Qt3DRender::QGeometryRenderer `.

El origen de la geometría es el extremo trasero izquierdo de la línea de base del texto.

Documentación de propiedades

extrusionLength : float

Almacena la longitud de extrusión del texto.

Funciones de acceso:

float extrusionLength() const
void setDepth(float extrusionLength)

Señal de notificación:

void depthChanged(float extrusionLength)

font : QFont

Contiene la fuente del texto.

La geometría 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 del notificador:

void fontChanged(const QFont &font)

[read-only] indexAttribute : Qt3DCore::QAttribute* const

Contiene el atributo de índice geométrico.

Funciones de acceso:

Qt3DCore::QAttribute *indexAttribute() const

[read-only] normalAttribute : Qt3DCore::QAttribute* const

Contiene el atributo «normal» de la geometría.

Funciones de acceso:

Qt3DCore::QAttribute *normalAttribute() const

[read-only] positionAttribute : Qt3DCore::QAttribute* const

Almacena el atributo de posición geométrica.

Funciones de acceso:

Qt3DCore::QAttribute *positionAttribute() const

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] QExtrudedTextGeometry::QExtrudedTextGeometry(Qt3DCore::QNode *parent = nullptr)

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