- Qt 6.10
- Qt 3D
- QML Types
- Qt3D.Extras (Deprecated)
- Text2DEntity
- Qt 6.10.1 Reference Documentation

# Text2DEntity QML Type

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

Import Statement: | `import Qt3D.Extras 2.10`
Status: | Deprecated

- List of all members, including inherited members

## Properties

- alignment : Qt::Alignment
- color : color
- font : font
- height : real
- text : string
- width : real

## Detailed Description

The Text2DEntity 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.

Text2DEntity will create geometry based on the shape of the glyphs and a solid material using the specified color.

## Property Documentation

alignment : Qt::Alignment

* * * Holds the alignment of the text.

color : color

Holds the color of the text.

font : font

Holds the font of the text.

height : real

Holds the height of the text's bounding rectangle.

text : string

Holds the text used for the mesh.

width : real

Holds the width of the text's bounding rectangle.