Text2DEntity QML Type
Text2DEntity 允许在三维空间中创建二维文本。更多
Import Statement: | import Qt3D.Extras 2.9 |
In C++: | QText2DEntity |
Status: | Deprecated |
属性
详细说明
Text2DEntity 将文本渲染为 XY 平面上的三角形。几何图形将嵌合到指定宽度和高度的矩形中。如果生成的几何体宽度大于指定宽度,剩余部分将在新线上渲染。
实体可以通过添加变换组件在场景中定位。
Text2DEntity 将根据字形的形状创建几何体,并使用指定的颜色创建实体材质。
属性文档
alignment : Qt::Alignment |
* 保存文本的对齐方式。
color : color |
文本的颜色
font : font |
文本的字体
height : real |
文本边界矩形的高度。
text : string |
文本网格的宽度。
width : real |
文本边界矩形的宽度。
© 2025 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.