QExtrudedTextGeometry Class | Qt 3D 5.13.0

Qt 5.13 | Qt 3D | C++ Classes | QExtrudedTextGeometry

Qt 5.13.0 Reference Documentation

# QExtrudedTextGeometry Class

(Qt3DExtras::QExtrudedTextGeometry)

The QExtrudedTextGeometry class allows creation of a 3D extruded text in 3D space. More...

Header: | #include <Qt3DExtras/QExtrudedTextGeometry>
qmake: | QT += 3dextras
Since: | Qt 5.9
Instantiated By: | ExtrudedTextGeometry
Inherits: | Qt3DRender::QGeometry

This class was introduced in Qt 5.9.

- List of all members, including inherited members
- Obsolete members

## Properties

- extrusionLength : float
- font : QFont
- indexAttribute : Qt3DRender::QAttribute* const

- normalAttribute : Qt3DRender::QAttribute* const
- positionAttribute : Qt3DRender::QAttribute* const
- text : QString

- 3 properties inherited from Qt3DRender::QGeometry
- 3 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject

## Public Functions

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

- 6 public functions inherited from Qt3DRender::QGeometry
- 13 public functions inherited from Qt3DCore::QNode
- 30 public functions inherited from QObject

## Public Slots

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

- 1 public slot inherited from Qt3DRender::QGeometry
- 3 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject

## Signals

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

- 3 signals inherited from Qt3DRender::QGeometry
- 4 signals inherited from Qt3DCore::QNode
- 2 signals inherited from QObject

## Related Non-Members

typedef | QNodePtr
typedef | QNodeVector
typedef | QObjectList
QList<T> | qFindChildren(const QObject *obj, const QRegExp &regExp)
Qt3DCore::QNodeId | qIdForNode(Qt3DCore::QNode *node)
Qt3DCore::QNodeIdVector | qIdsForNodes(const T &nodes)
T | qobject_cast(QObject *object)
T | qobject_cast(const QObject *object)

## Macros

| QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
| Q_CLASSINFO(Name, Value)
| Q_DISABLE_COPY(Class)
| Q_DISABLE_COPY_MOVE(Class)
| Q_DISABLE_MOVE(Class)
| Q_EMIT
| Q_ENUM(...)
| Q_ENUM_NS(...)
| Q_FLAG(...)
| Q_FLAG_NS(...)
| Q_GADGET
| Q_INTERFACES(...)
| Q_INVOKABLE
| Q_NAMESPACE
| Q_OBJECT
| Q_PROPERTY(...)
| Q_REVISION
| Q_SET_OBJECT_NAME(Object)
| Q_SIGNAL
| Q_SIGNALS
| Q_SLOT
| Q_SLOTS

### Additional Inherited Members

- 9 static public members inherited from QObject
- 2 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject

## Detailed Description

The QExtrudedTextGeometry class is most commonly used internally by the QText3DMesh but can also be used in custom Qt3DRender::QGeometryRenderer subclasses.

## Property Documentation

### extrusionLength : float

Holds the extrusion length of the text.

Access functions:

float | extrusionLength() const
void | setDepth(float extrusionLength)

Notifier signal:

void | depthChanged(float extrusionLength)

### font : QFont

Holds the font of the text.

Access functions:

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

Notifier signal:

void | fontChanged(const QFont &font)

### indexAttribute : Qt3DRender::QAttribute* const

Holds the geometry index attribute.

Access functions:

Qt3DRender::QAttribute * | indexAttribute() const

### normalAttribute : Qt3DRender::QAttribute* const

Holds the geometry normal attribute.

Access functions:

Qt3DRender::QAttribute * | normalAttribute() const

### positionAttribute : Qt3DRender::QAttribute* const

Holds the geometry position attribute.

Access functions:

Qt3DRender::QAttribute * | positionAttribute() const

### text : QString

Holds the text used for the mesh.

Access functions:

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

Notifier signal:

void | textChanged(const QString &text)

## Member Function Documentation

### QExtrudedTextGeometry::QExtrudedTextGeometry(Qt3DCore::QNode *parent = nullptr)

Constructs a new QExtrudedTextGeometry with parent.