QExtrudedTextMesh¶

A 3D extruded Text mesh. More…

Inheritance diagram of PySide2.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 PySide2.Qt3DExtras.Qt3DExtras.QExtrudedTextMesh([parent=None])¶

Constructs a new QText3DMesh with parent .

PySide2.Qt3DExtras.Qt3DExtras.QExtrudedTextMesh.depth()¶
Return type:

float

Holds the extrusion depth of the text.

PySide2.Qt3DExtras.Qt3DExtras.QExtrudedTextMesh.depthChanged(depth)¶
Parameters:

depth – float

PySide2.Qt3DExtras.Qt3DExtras.QExtrudedTextMesh.font()¶
Return type:

PySide2.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.

PySide2.Qt3DExtras.Qt3DExtras.QExtrudedTextMesh.fontChanged(font)¶
Parameters:

font – PySide2.QtGui.QFont

PySide2.Qt3DExtras.Qt3DExtras.QExtrudedTextMesh.setDepth(depth)¶
Parameters:

depth – float

Holds the extrusion depth of the text.

PySide2.Qt3DExtras.Qt3DExtras.QExtrudedTextMesh.setFont(font)¶
Parameters:

font – PySide2.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.

PySide2.Qt3DExtras.Qt3DExtras.QExtrudedTextMesh.setText(text)¶
Parameters:

text – str

Holds the text used for the mesh.

PySide2.Qt3DExtras.Qt3DExtras.QExtrudedTextMesh.text()¶
Return type:

str

Holds the text used for the mesh.

PySide2.Qt3DExtras.Qt3DExtras.QExtrudedTextMesh.textChanged(text)¶
Parameters:

text – str