Text2DEntity QML Type

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

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

プロパティ

詳細説明

Text2DEntityは、テキストをXY平面の三角形としてレンダリングする。ジオメトリは、指定された幅と高さの矩形に収まる。結果のジオメトリが指定された幅よりも広い場合、残りは新しい行にレンダリングされます。

エンティティは、transform コンポーネントを追加することで、シーン内に配置できます。

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

プロパティ ドキュメント

alignment : Qt::Alignment

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


color : color

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


font : font

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


height : float

テキストの外接矩形の高さを保持します。


text : string

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


width : float

テキストの外接矩形の幅を保持します。


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