QExtrudedTextMesh¶
A 3D extruded Text mesh. More…
Synopsis¶
Functions¶
Slots¶
Signals¶
def
depthChanged
(depth)def
fontChanged
(font)def
textChanged
(text)
Detailed Description¶
The origin of the mesh is the rear left end of the text’s baseline.
- class PySide2.Qt3DExtras.Qt3DExtras.QExtrudedTextMesh([parent=None])¶
- param parent:
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:
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
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.