QExtrudedTextGeometry

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

Synopsis

Functions

Slots

Signals

Detailed Description

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

class PySide2.Qt3DExtras.QExtrudedTextGeometry([parent=None])
param parent

PySide2.Qt3DCore.QNode

Constructs a new QExtrudedTextGeometry with parent .

PySide2.Qt3DExtras.QExtrudedTextGeometry.depthChanged(extrusionLength)
Parameters

extrusionLength – float

PySide2.Qt3DExtras.QExtrudedTextGeometry.extrusionLength()
Return type

float

Holds the extrusion length of the text.

PySide2.Qt3DExtras.QExtrudedTextGeometry.font()
Return type

PySide2.QtGui.QFont

Holds the font of the text.

PySide2.Qt3DExtras.QExtrudedTextGeometry.fontChanged(font)
Parameters

fontPySide2.QtGui.QFont

PySide2.Qt3DExtras.QExtrudedTextGeometry.indexAttribute()
Return type

PySide2.Qt3DRender.QAttribute

Holds the geometry index attribute.

PySide2.Qt3DExtras.QExtrudedTextGeometry.normalAttribute()
Return type

PySide2.Qt3DRender.QAttribute

Holds the geometry normal attribute.

PySide2.Qt3DExtras.QExtrudedTextGeometry.positionAttribute()
Return type

PySide2.Qt3DRender.QAttribute

Holds the geometry position attribute.

PySide2.Qt3DExtras.QExtrudedTextGeometry.setDepth(extrusionLength)
Parameters

extrusionLength – float

Holds the extrusion length of the text.

PySide2.Qt3DExtras.QExtrudedTextGeometry.setFont(font)
Parameters

fontPySide2.QtGui.QFont

Holds the font of the text.

PySide2.Qt3DExtras.QExtrudedTextGeometry.setText(text)
Parameters

text – str

Holds the text used for the mesh.

PySide2.Qt3DExtras.QExtrudedTextGeometry.text()
Return type

str

Holds the text used for the mesh.

PySide2.Qt3DExtras.QExtrudedTextGeometry.textChanged(text)
Parameters

text – str