QText2DEntity Class
(Qt3DExtras::QText2DEntity)Inherits: | Qt3DCore::QEntity |
Properties
- 3 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject
Public Functions
QText2DEntity(Qt3DCore::QNode *parent = nullptr) | |
virtual | ~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 |
- 4 public functions inherited from Qt3DCore::QEntity
- 13 public functions inherited from Qt3DCore::QNode
- 34 public functions inherited from QObject
Signals
void | colorChanged(const QColor &color) |
void | fontChanged(const QFont &font) |
void | heightChanged(float height) |
void | textChanged(const QString &text) |
void | widthChanged(float width) |
- 4 signals inherited from Qt3DCore::QNode
- 2 signals inherited from QObject
Additional Inherited Members
- 3 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject
- 1 public variable inherited from QObject
- 10 static public members inherited from QObject
- 2 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject
- 2 protected variables inherited from QObject
Property Documentation
color : QColor
Access functions:
QColor | color() const |
void | setColor(const QColor &color) |
Notifier signal:
void | colorChanged(const QColor &color) |
font : QFont
Access functions:
QFont | font() const |
void | setFont(const QFont &font) |
Notifier signal:
void | fontChanged(const QFont &font) |
height : float
Access functions:
float | height() const |
void | setHeight(float height) |
Notifier signal:
void | heightChanged(float height) |
text : QString
Access functions:
QString | text() const |
void | setText(const QString &text) |
Notifier signal:
void | textChanged(const QString &text) |
width : float
Access functions:
float | width() const |
void | setWidth(float width) |
Notifier signal:
void | widthChanged(float width) |
Member Function Documentation
QText2DEntity::QText2DEntity(Qt3DCore::QNode *parent = nullptr)
Default constructs an instance of QText2DEntity.
[virtual]
QText2DEntity::~QText2DEntity()
Destroys the instance of QText2DEntity. The destructor is virtual.
QColor QText2DEntity::color() const
Returns the color for the text item that is displayed in the Qt Quick scene.
Note: Getter function for property color.
See also setColor().
QFont QText2DEntity::font() const
Returns the font for the text item that is displayed in the Qt Quick scene.
Note: Getter function for property font.
See also setFont().
float QText2DEntity::height() const
Returns the width of the text item that is displayed in the Qt Quick scene.
Note: Getter function for property height.
See also setHeight().
QString QText2DEntity::text() const
Returns the text that is displayed in the Qt Quick scene.
Note: Getter function for property text.
See also setText().
float QText2DEntity::width() const
Returns the width of the text item that is displayed in the Qt Quick scene.
Note: Getter function for property width.
See also setWidth().
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/archives/qt-5.11/qt3dextras-qtext2dentity.html