QExtrudedTextGeometry#
The QExtrudedTextGeometry
class allows creation of a 3D extruded text in 3D space. More…
Synopsis#
Properties#
Functions#
def
extrusionLength
()def
font
()def
indexAttribute
()def
normalAttribute
()def
positionAttribute
()def
text
()
Slots#
Signals#
def
depthChanged
(extrusionLength)def
fontChanged
(font)def
textChanged
(text)
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
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:
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Constructs a new QExtrudedTextGeometry
with parent
.
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.extrusionLength: float#
Holds the extrusion length of the text.
- Access functions:
setDepth
(extrusionLength)Signal
depthChanged
(extrusionLength)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.font: PySide6.QtGui.QFont#
Holds the font of the text.
The 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.
- Access functions:
font
()setFont
(font)Signal
fontChanged
(font)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.indexAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#
Holds the geometry index attribute.
- Access functions:
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.normalAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#
Holds the geometry normal attribute.
- Access functions:
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.positionAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#
Holds the geometry position attribute.
- Access functions:
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.text: str#
Holds the text used for the mesh.
- Access functions:
text
()setText
(text)Signal
textChanged
(text)
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.depthChanged(extrusionLength)#
- Parameters:
extrusionLength – float
Notification signal of property extrusionLength
.
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.extrusionLength()#
- Return type:
float
Getter of property extrusionLength
.
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.font()#
- Return type:
See also
Getter of property font
.
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.fontChanged(font)#
- Parameters:
font –
PySide6.QtGui.QFont
Notification signal of property font
.
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.indexAttribute()#
- Return type:
Getter of property indexAttribute
.
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.normalAttribute()#
- Return type:
Getter of property normalAttribute
.
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.positionAttribute()#
- Return type:
Getter of property positionAttribute
.
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.setDepth(extrusionLength)#
- Parameters:
extrusionLength – float
Setter of property extrusionLength
.
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.setFont(font)#
- Parameters:
font –
PySide6.QtGui.QFont
See also
Setter of property font
.
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.setText(text)#
- Parameters:
text – str
See also
Setter of property text
.
Getter of property text
.
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.textChanged(text)#
- Parameters:
text – str
Notification signal of property text
.