内容表

上一话题

Qt3DExtras.QSpriteSheetItem

下一话题

Qt3DExtras.QTextureMaterial

Qt3DExtras.QText2DEntity

QText2DEntity allows creation of a 2D text in 3D space. 更多 …

Inheritance diagram of PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity

概要

函数

信号

详细描述

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 ] )
参数

parent – QNode

PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity. color ( )
返回类型

QColor

另请参阅

setColor()

PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity. colorChanged ( color )
参数

color – QColor

PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity. font ( )
返回类型

QFont

另请参阅

setFont()

PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity. fontChanged ( font )
参数

font – QFont

PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity. height ( )
返回类型

float

另请参阅

setHeight()

PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity. heightChanged ( height )
参数

height – float

PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity. setColor ( color )
参数

color – QColor

另请参阅

color()

PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity. setFont ( font )
参数

font – QFont

另请参阅

font()

PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity. setHeight ( height )
参数

height – float

另请参阅

height()

PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity. setText ( text )
参数

text – unicode

另请参阅

text()

PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity. setWidth ( width )
参数

width – float

另请参阅

width()

PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity. text ( )
返回类型

unicode

另请参阅

setText()

PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity. textChanged ( text )
参数

text – unicode

PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity. width ( )
返回类型

float

另请参阅

setWidth()

PySide2.Qt3DExtras.Qt3DExtras.QText2DEntity. widthChanged ( width )
参数

width – float