QExtrudedTextGeometry

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

Inheritance diagram of PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry

Synopsis

Functions

Detailed Description

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

The origin of the geometry is the rear left end of the text’s baseline.

class PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry([parent=None])
Parameters

parentPySide6.Qt3DCore.Qt3DCore.QNode

Constructs a new QExtrudedTextGeometry with parent.

PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.depthChanged(extrusionLength)
Parameters

extrusionLength – float

PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.extrusionLength()
Return type

float

PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.font()
Return type

PySide6.QtGui.QFont

See also

setFont()

PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.fontChanged(font)
Parameters

fontPySide6.QtGui.QFont

PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.indexAttribute()
Return type

PySide6.Qt3DCore.Qt3DCore.QAttribute

PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.normalAttribute()
Return type

PySide6.Qt3DCore.Qt3DCore.QAttribute

PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.positionAttribute()
Return type

PySide6.Qt3DCore.Qt3DCore.QAttribute

PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.setDepth(extrusionLength)
Parameters

extrusionLength – float

PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.setFont(font)
Parameters

fontPySide6.QtGui.QFont

See also

font()

PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.setText(text)
Parameters

text – str

See also

text()

PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.text()
Return type

str

See also

setText()

PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.textChanged(text)
Parameters

text – str