Text2DEntity QML Type
Text2DEntity permite crear un texto en 2D en un espacio 3D. Más información...
| Import Statement: | import Qt3D.Extras 2.12 |
| In C++: | QText2DEntity |
| Status: | Deprecated |
Este tipo está en desuso. Recomendamos encarecidamente no utilizarlo en código nuevo.
Propiedades
Descripción detallada
El componente Text2DEntity representa el texto como triángulos en el plano XY. La geometría se ajustará al rectángulo de anchura y altura especificadas. Si la geometría resultante es más ancha que la anchura especificada, el resto se representará en una nueva línea.
La entidad se puede colocar en la escena añadiendo un componente de transformación.
Text2DEntity creará la geometría basándose en la forma de los glifos y un material sólido con el color especificado.
Documentación de propiedades
alignment : Qt::Alignment
* * * Mantiene la alineación del texto.
color : color
Contiene el color del texto.
font : font
Contiene el tipo de letra del texto.
height : real
Contiene la altura del rectángulo delimitador del texto.
text : string
Contiene el texto utilizado para la malla.
width : real
Contiene la anchura del rectángulo delimitador del texto.
© 2026 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.