- class QExtrudedTextGeometry#
The
QExtrudedTextGeometry
class allows creation of a 3D extruded text in 3D space. More…Synopsis#
Properties#
Methods#
def
__init__()
def
font()
def
indexAttribute()
def
text()
Slots#
def
setDepth()
def
setFont()
def
setText()
Signals#
def
depthChanged()
def
fontChanged()
def
textChanged()
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 customQGeometryRenderer
subclasses.The origin of the geometry is the rear left end of the text’s baseline.
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property extrusionLengthᅟ: float#
Holds the extrusion length of the text.
- Access functions:
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:
Signal
fontChanged()
- property indexAttributeᅟ: QAttribute#
Holds the geometry index attribute.
- Access functions:
- property normalAttributeᅟ: QAttribute#
Holds the geometry normal attribute.
- Access functions:
- property positionAttributeᅟ: QAttribute#
Holds the geometry position attribute.
- Access functions:
- property textᅟ: str#
Holds the text used for the mesh.
- Access functions:
Signal
textChanged()
- __init__([parent=None])#
- Parameters:
parent –
QNode
Constructs a new
QExtrudedTextGeometry
withparent
.- depthChanged(extrusionLength)#
- Parameters:
extrusionLength – float
Notification signal of property
extrusionLengthᅟ
.- extrusionLength()#
- Return type:
float
Getter of property
extrusionLengthᅟ
.Getter of property
fontᅟ
.Notification signal of property
fontᅟ
.- indexAttribute()#
- Return type:
QAttribute
Getter of property
indexAttributeᅟ
.- normalAttribute()#
- Return type:
QAttribute
Getter of property
normalAttributeᅟ
.- positionAttribute()#
- Return type:
QAttribute
Getter of property
positionAttributeᅟ
.- setDepth(extrusionLength)#
- Parameters:
extrusionLength – float
Setter of property
extrusionLengthᅟ
.Setter of property
fontᅟ
.- setText(text)#
- Parameters:
text – str
See also
text()
Setter of property
textᅟ
.- text()#
- Return type:
str
See also
setText()
Getter of property
textᅟ
.- textChanged(text)#
- Parameters:
text – str
Notification signal of property
textᅟ
.