이 페이지에서

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.