QComponent Class | Qt 3D 5.15.19 (original) (raw)
class Qt3DCore::QComponent
The base class of scene nodes that can be aggregated by Qt3DCore::QEntity instances as a component. More...
This class was introduced in Qt 5.5.
Properties
- isShareable : bool
Public Functions
Public Slots
Signals
See also Qt3DCore::QEntity.
Property Documentation
isShareable : bool
Holds the shareable flag of the QComponent. The QComponent can be shared across several entities if true
.
Access functions:
bool | isShareable() const |
---|---|
void | setShareable(bool isShareable) |
Notifier signal:
void | shareableChanged(bool isShareable) |
---|
Member Function Documentation
QComponent::QComponent(Qt3DCore::QNode *parent = nullptr)
Constructs a new QComponent instance with parent as the parent.
Note: a QComponent should never be instanced directly, instance one of the subclasses instead.
[signal]
void QComponent::addedToEntity(Qt3DCore::QEntity *entity)
Indicates that a reference has been added to entity.
[signal]
void QComponent::removedFromEntity(Qt3DCore::QEntity *entity)
Indicates that a reference has been removed from entity.
QVector<Qt3DCore::QEntity *> QComponent::entities() const
Returns a QVector containing all the entities that reference this component.
© 2025 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.