QText2DEntityallows creation of a 2D text in 3D space. 更多 …
def
colorChanged
(color)
def
fontChanged
(font)
def
heightChanged
(height)
def
textChanged
(text)
def
widthChanged
(width)
QText2DEntityrenders text as triangles in the XY plane. The geometry will be fitted in the rectangle of specified width and height. If the resulting geometry is wider than the specified width, the remainder will be rendered on the new line.The entity can be positionned in the scene by adding a transform component.
QText2DEntitywill create geometry based on the shape of the glyphs and a solid material using the specified color.
PySide2.Qt3DExtras.Qt3DExtras.
QText2DEntity
(
[
parent=None
]
)
¶
parent
–
QNode
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
color
(
)
¶
QColor
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
colorChanged
(
color
)
¶
color
–
QColor
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
fontChanged
(
font
)
¶
font
–
QFont
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
height
(
)
¶
float
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
heightChanged
(
height
)
¶
height
–
float
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
textChanged
(
text
)
¶
text – unicode
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
width
(
)
¶
float
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
widthChanged
(
width
)
¶
width
–
float