QExtrudedTextMesh Class

class Qt3DExtras ::QExtrudedTextMesh

A 3D extruded Text mesh. 更多...

頭: #include <Qt3DExtras/QExtrudedTextMesh>
qmake: QT += 3dextras
實例化: 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 )

詳細描述

The origin of the mesh is the rear left end of the text's baseline.

特性文檔編製

depth : float

Holds the extrusion depth of the text.

訪問函數:

float depth () const
void setDepth (float depth )

通知程序信號:

void depthChanged (float depth )

font : QFont

Holds the font of the text.

The mesh geometry is normalized by the font's pointSize, so a larger pointSize will result in smoother, rather than larger, text. pixelSize should not be used.

訪問函數:

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

通知程序信號:

void fontChanged (const QFont & font )

text : QString

Holds the text used for the mesh.

訪問函數:

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

通知程序信號:

void textChanged (const QString & text )

成員函數文檔編製

QExtrudedTextMesh:: QExtrudedTextMesh ( Qt3DCore::QNode * parent = nullptr)

Constructs a new QText3DMesh with parent .