内容表

上一话题

Qt3DCore.QComponent

下一话题

Qt3DCore.QComponentRemovedChange

Qt3DCore.QComponentAddedChange

QComponentAddedChange class is used to notify when a component is added to an entity. 更多

Inheritance diagram of PySide2.Qt3DCore.Qt3DCore.QComponentAddedChange

详细描述

class PySide2.Qt3DCore.Qt3DCore. QComponentAddedChange ( component , entity )

注意

This constructor is deprecated.

PySide2.Qt3DCore.Qt3DCore.QComponentAddedChange(entity, component)

注意

This constructor is deprecated.

param component

QComponent

param entity

QEntity

构造新 QComponentAddedChange which will notify component that it was added to entity

构造新 QComponentAddedChange which will notify entity that component was added

PySide2.Qt3DCore.Qt3DCore.QComponentAddedChange. componentId ( )
返回类型

QNodeId

Returns the id of the component added.

PySide2.Qt3DCore.Qt3DCore.QComponentAddedChange. componentMetaObject ( )
返回类型

QMetaObject

Returns the metaobject.

PySide2.Qt3DCore.Qt3DCore.QComponentAddedChange. entityId ( )
返回类型

QNodeId

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