QComponentAddedChange Class


The QComponentAddedChange class is used to notify when a component is added to an entity. More...

Header: #include <Qt3DCore/QComponentAddedChange>
qmake: QT += 3dcore
Inherits: Qt3DCore::QSceneChange

Public Functions

QComponentAddedChange(const Qt3DCore::QComponent *component, const Qt3DCore::QEntity *entity)
QComponentAddedChange(const Qt3DCore::QEntity *entity, const Qt3DCore::QComponent *component)
Qt3DCore::QNodeId componentId() const
const QMetaObject *componentMetaObject() const
Qt3DCore::QNodeId entityId() const
enum ChangeFlag { NodeCreated, NodeDeleted, PropertyUpdated, PropertyValueAdded, ..., AllChanges }
typedef QComponentAddedChangePtr
typedef QSceneChangePtr

Detailed Description

Member Function Documentation

QComponentAddedChange::QComponentAddedChange(const Qt3DCore::QComponent *component, const Qt3DCore::QEntity *entity)

Constructs a new QComponentAddedChange which will notify component that it was added to entity

QComponentAddedChange::QComponentAddedChange(const Qt3DCore::QEntity *entity, const Qt3DCore::QComponent *component)

Constructs a new QComponentAddedChange which will notify entity that component was added

Qt3DCore::QNodeId QComponentAddedChange::componentId() const

Returns the id of the component added.

const QMetaObject *QComponentAddedChange::componentMetaObject() const

Returns the metaobject.

Qt3DCore::QNodeId QComponentAddedChange::entityId() const

Returns the id of the entity the component was added to.

Related Non-Members

typedef QComponentAddedChange::QComponentAddedChangePtr

A shared pointer for QComponentAddedChange.

© 2019 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.