このページでは

Text2DEntity QML Type

Text2DEntity を使用すると、3D 空間内に 2D テキストを作成できます。詳細...

Import Statement: import Qt3D.Extras 2.12
In C++: QText2DEntity
Status: Deprecated

この型は非推奨です。新しいコードでの使用は強く推奨しません。

プロパティ

詳細な説明

Text2DEntityは、テキストをXY平面上の三角形としてレンダリングします。ジオメトリは、指定された幅と高さの矩形内に収められます。生成されたジオメトリが指定された幅より広い場合、残りの部分は改行されてレンダリングされます。

トランスフォームコンポーネントを追加することで、シーン内にエンティティを配置できます。

Text2DEntityは、グリフの形状に基づいてジオメトリを作成し、指定された色を使用したソリッドマテリアルを適用します。

プロパティのドキュメント

alignment : Qt::Alignment

* * * テキストの配置を維持します。

color : color

テキストの色を保持します。

font : font

テキストのフォントを保持します。

height : real

テキストのバウンディング矩形の高さを保持します。

text : string

メッシュに使用されるテキストを保持します。

width : real

テキストの境界矩形の幅を保持します。

© 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.