Text2DEntity QML Type
Text2DEntity consente di creare un testo 2D nello spazio 3D. Maggiori informazioni...
| Import Statement: | import Qt3D.Extras 2.12 |
| In C++: | QText2DEntity |
| Status: | Deprecated |
Questo tipo è deprecato. Si sconsiglia vivamente di utilizzarlo nel nuovo codice.
Proprietà
Descrizione dettagliata
Il componente Text2DEntity rende il testo sotto forma di triangoli sul piano XY. La geometria verrà adattata al rettangolo di larghezza e altezza specificate. Se la geometria risultante è più larga della larghezza specificata, la parte rimanente verrà visualizzata su una nuova riga.
L'entità può essere posizionata nella scena aggiungendo un componente di trasformazione.
Text2DEntity creerà una geometria basata sulla forma dei glifi e un materiale solido utilizzando il colore specificato.
Documentazione delle proprietà
alignment : Qt::Alignment
* * * Mantiene l'allineamento del testo.
color : color
Contiene il colore del testo.
font : font
Contiene il carattere del testo.
height : real
Contiene l'altezza del rettangolo di delimitazione del testo.
text : string
Contiene il testo utilizzato per la mesh.
width : real
Contiene la larghezza del rettangolo di delimitazione del testo.
© 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.