QComponentRemovedChange Class | Qt 3D 5.9

Qt 5.9 | Qt 3D | C++ Classes | QComponentRemovedChange

Qt 5.9.9 Reference Documentation

# QComponentRemovedChange Class

(Qt3DCore::QComponentRemovedChange)

The QComponentRemovedChange class is used to notify when a component is removed from an entity More...

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

- List of all members, including inherited members

## Public Functions

| QComponentRemovedChange(const QEntity *entity, const QComponent *component)
| QComponentRemovedChange(const QComponent *component, const QEntity *entity)
| ~QComponentRemovedChange()
QNodeId | componentId() const
const QMetaObject * | componentMetaObject() const
QNodeId | entityId() const

- 4 public functions inherited from Qt3DCore::QSceneChange

## Related Non-Members

typedef | QComponentRemovedChangePtr

## Detailed Description

The QComponentRemovedChange class is used to notify when a component is removed from an entity

## Member Function Documentation

### QComponentRemovedChange::QComponentRemovedChange(const QEntity *entity, const QComponent *component)

Constructs a new QComponentRemovedChange which will notify entity that component was removed.

### QComponentRemovedChange::QComponentRemovedChange(const QComponent *component, const QEntity *entity)

Constructs a new QComponentRemovedChange which will notify component that it was removed from entity

### QComponentRemovedChange::~QComponentRemovedChange()

Destroys the instance of QComponentRemovedChange.

### QNodeId QComponentRemovedChange::componentId() const

Returns the id of the component removed.

### const QMetaObject *QComponentRemovedChange::componentMetaObject() const

Returns the metaobject.

### QNodeId QComponentRemovedChange::entityId() const

Returns the id of the entity the component was removed from.

## Related Non-Members

### typedef Qt3DCore::QComponentRemovedChangePtr

A shared pointer for QComponentRemovedChange.