QText2DEntity Class

( Qt3DExtras::QText2DEntity )
繼承: Qt3DCore::QEntity

特性

公共函數

QText2DEntity (Qt3DCore::QNode * parent = nullptr)
~QText2DEntity ()
QColor color () const
QFont font () const
float height () const
void setColor (const QColor & color )
void setFont (const QFont & font )
void setHeight (float height )
void setText (const QString & text )
void setWidth (float width )
QString text () const
float width () const

信號

void colorChanged (const QColor & color )
void fontChanged (const QFont & font )
void heightChanged (float height )
void textChanged (const QString & text )
void widthChanged (float width )

額外繼承成員

特性文檔編製

color : QColor

訪問函數:

QColor color () const
void setColor (const QColor & color )

通知程序信號:

void colorChanged (const QColor & color )

font : QFont

訪問函數:

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

通知程序信號:

void fontChanged (const QFont & font )

height : float

訪問函數:

float height () const
void setHeight (float height )

通知程序信號:

void heightChanged (float height )

text : QString

訪問函數:

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

通知程序信號:

void textChanged (const QString & text )

width : float

訪問函數:

float width () const
void setWidth (float width )

通知程序信號:

void widthChanged (float width )

成員函數文檔編製

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

Default constructs an instance of QText2DEntity.

QText2DEntity:: ~QText2DEntity ()

Destroys the instance of QText2DEntity.