QNodeCommand Class

(Qt3DCore::QNodeCommand)

The QNodeCommand class is the base class for all CommandRequested QSceneChange events. More...

Header: #include <Qt3DCore/QNodeCommand>
qmake: QT += 3dcore
Since: Qt 5.10
Inherits: Qt3DCore::QSceneChange

This class was introduced in Qt 5.10.

Public Types

typedef CommandId

Public Functions

QNodeCommand(Qt3DCore::QNodeId id)
Qt3DCore::QNodeCommand::CommandId commandId() const
QVariant data() const
QString name() const
enum ChangeFlag { NodeCreated, NodeDeleted, PropertyUpdated, PropertyValueAdded, ..., AllChanges }
typedef QNodeCommandPtr
typedef QSceneChangePtr

Detailed Description

The QNodeCommand class is the base class for all QSceneChange events that have the changeType() CommandRequested.

You can subclass this to create your own node update types for communication between your QNode and QBackendNode subclasses when writing your own aspects.

Member Type Documentation

typedef QNodeCommand::CommandId

Type of the command id, defined either as quint64 or quint32 depending on the platform support.

Member Function Documentation

QNodeCommand::QNodeCommand(Qt3DCore::QNodeId id)

Constructs a new QNodeCommand with id.

Qt3DCore::QNodeCommand::CommandId QNodeCommand::commandId() const

Returns commandId.

QVariant QNodeCommand::data() const

Returns data.

QString QNodeCommand::name() const

Returns name.

Related Non-Members

typedef QNodeCommand::QNodeCommandPtr

A shared pointer for QNodeCommand.