Qt3DExtras.QText2DEntity¶
QText2DEntity
allows creation of a 2D text in 3D space. More…
Synopsis¶
Functions¶
Signals¶
def
colorChanged
(color)def
fontChanged
(font)def
heightChanged
(height)def
textChanged
(text)def
widthChanged
(width)
Detailed Description¶
The
QText2DEntity
renders 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.
QText2DEntity
will create geometry based on the shape of the glyphs and a solid material using the specified color.
-
class
PySide2.Qt3DExtras.Qt3DExtras.
QText2DEntity
([parent=None])¶ - Parameters
parent –
QNode
-
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
color
()¶ - Return type
QColor
See also
setColor()
-
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
colorChanged
(color)¶ - Parameters
color –
QColor
-
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
font
()¶ - Return type
QFont
See also
setFont()
-
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
fontChanged
(font)¶ - Parameters
font –
QFont
-
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
height
()¶ - Return type
float
See also
setHeight()
-
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
heightChanged
(height)¶ - Parameters
height –
float
-
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
setColor
(color)¶ - Parameters
color –
QColor
See also
color()
-
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
setFont
(font)¶ - Parameters
font –
QFont
See also
font()
-
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
setHeight
(height)¶ - Parameters
height –
float
See also
height()
-
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
setText
(text)¶ - Parameters
text – unicode
See also
text()
-
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
setWidth
(width)¶ - Parameters
width –
float
See also
width()
-
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
text
()¶ - Return type
unicode
See also
setText()
-
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
textChanged
(text)¶ - Parameters
text – unicode
-
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
width
()¶ - Return type
float
See also
setWidth()
-
PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity.
widthChanged
(width)¶ - Parameters
width –
float
© 2018 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.