|CMake:||find_package(Qt6 REQUIRED COMPONENTS 3dcore)
target_link_libraries(mytarget PRIVATE Qt6::3dcore)
|qmake:||QT += 3dcore|
|QEntity(Qt3DCore::QNode *parent = nullptr)|
|QList<T *>||componentsOfType() const|
|Qt3DCore::QEntity *||parentEntity() const|
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.
Constructs a new Qt3DCore::QEntity instance with parent as parent.
Adds a new reference to the component comp.
Returns the list of Qt3DCore::QComponent instances the entity is referencing.
Returns all the components added to this entity that can be cast to type T or an empty vector if there are no such components.
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.
Removes the reference to comp.
List of QComponent pointers.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: