|qmake:||QT += 3dcore|
|QEntity(Qt3DCore::QNode *parent = nullptr)|
|Qt3DCore::QEntity *||parentEntity() const|
- 9 static public members inherited from QObject
Additional Inherited Members
- 3 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject
- 3 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject
- 4 signals inherited from Qt3DCore::QNode
- 2 signals inherited from QObject
- 2 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject
By itself a Qt3DCore::QEntity is an empty shell. The behavior of a Qt3DCore::QEntity object is defined by the Qt3DCore::QComponent objects it references. Each Qt3D backend aspect will be able to interpret and process an Entity by recognizing which components it is made up of. One aspect may decide to only process entities composed of a single Qt3DCore::QTransform component whilst another may focus on Qt3DInput::QMouseHandler.
Member Function Documentation
QEntity::QEntity(Qt3DCore::QNode *parent = nullptr)
Constructs a new Qt3DCore::QEntity instance with parent as parent.
Destroys the instance of QEntity. The destructor is virtual.
void QEntity::addComponent(Qt3DCore::QComponent *comp)
Adds a new reference to the component comp.
Qt3DCore::QComponentVector QEntity::components() const
Returns the list of Qt3DCore::QComponent instances the entity is referencing.
Qt3DCore::QEntity *QEntity::parentEntity() const
Returns the parent Qt3DCore::QEntity instance of this entity. If the immediate parent isn't a Qt3DCore::QEntity, this function traverses up the scene hierarchy until a parent Qt3DCore::QEntity is found. If no Qt3DCore::QEntity parent can be found, returns null.
void QEntity::removeComponent(Qt3DCore::QComponent *comp)
Removes the reference to comp.
List of QComponent pointers.
© 2021 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.