QExtrudedTextMesh Class

class Qt3DExtras::QExtrudedTextMesh

3D押し出しテキストメッシュ。もっと見る...

ヘッダー #include <Qt3DExtras/QExtrudedTextMesh>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras)
qmake QT += 3dextras
QML で ExtrudedTextMesh
を継承しています: Qt3DRender::QGeometryRenderer
ステータス非推奨

プロパティ

パブリック機能

QExtrudedTextMesh(Qt3DCore::QNode *parent = nullptr)
float depth() const
QFont font() const
QString text() const

パブリックスロット

void setDepth(float depth)
void setFont(const QFont &font)
void setText(const QString &text)

シグナル

void depthChanged(float depth)
void fontChanged(const QFont &font)
void textChanged(const QString &text)

詳細説明

メッシュの原点は、テキストのベースラインの左端です。

プロパティの説明

depth : float

テキストの押し出し深さを保持します。

アクセス関数:

float depth() const
void setDepth(float depth)

通知シグナル:

void depthChanged(float depth)

font : QFont

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

メッシュのジオメトリはフォントのpointSizeで正規化されるため、pointSizeを大きくするとテキストが大きくなるのではなく、滑らかになる。

アクセス関数

QFont font() const
void setFont(const QFont &font)

通知シグナル:

void fontChanged(const QFont &font)

text : QString

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

アクセス関数:

QString text() const
void setText(const QString &text)

通知シグナル

void textChanged(const QString &text)

メンバー関数ドキュメント

[explicit] QExtrudedTextMesh::QExtrudedTextMesh(Qt3DCore::QNode *parent = nullptr)

新しい QText3DMesh をparent で構築します。

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