IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

Text2DEntity QML Type

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

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Text2DEntity QML Type

  • Import Statement: import Qt3D.Extras 2.4

  • Instantiates:: QText2DEntity

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

 

color : QColor

Holds the color of the text.

font : QFont

Holds the font of the text.

height : float

Holds the height of the text's bounding rectangle.

text : QString

Holds the text used for the mesh.

width : float

Holds the width of the text's bounding rectangle.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+