QExtrudedTextMesh

A 3D extruded Text mesh. More

Inheritance diagram of PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextMesh

Synopsis

Functions

Slots

Signals

Detailed Description

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

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

parentPySide6.Qt3DCore.Qt3DCore.QNode

Constructs a new QText3DMesh with parent.

PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextMesh.depth()
Return type

float

Holds the extrusion depth of the text.

PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextMesh.depthChanged(depth)
Parameters

depth – float

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

PySide6.QtGui.QFont

Holds the font of the text.

The mesh geometry is normalized by the font’s pointSize, so a larger pointSize will result in smoother, rather than larger, text. pixelSize should not be used.

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

fontPySide6.QtGui.QFont

PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextMesh.setDepth(depth)
Parameters

depth – float

Holds the extrusion depth of the text.

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

fontPySide6.QtGui.QFont

Holds the font of the text.

The mesh geometry is normalized by the font’s pointSize, so a larger pointSize will result in smoother, rather than larger, text. pixelSize should not be used.

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

text – str

Holds the text used for the mesh.

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

str

Holds the text used for the mesh.

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

text – str