QText2DEntity Class

class Qt3DExtras::QText2DEntity

QText2DEntity allows creation of a 2D text in 3D space. More...

Header: #include <Qt3DExtras/QText2DEntity>
qmake: QT += 3dextras
Instantiated By: Text2DEntity
Inherits: Qt3DCore::QEntity

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.