QNodeCommand Class▲
-
Header: Qt3DCore/QNodeCommand
-
Since: Qt 5.10
-
qmake: QT += 3dcore
-
Inherits: Qt3DCore::QSceneChange
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▲
QNodeCommand::CommandId▲
Type of the command id, defined either as quint64 or quint32 depending on the platform support.
Member Function Documentation▲
[explicit] QNodeCommand::QNodeCommand(Qt3DCore::QNodeId id)▲
Constructs a new QNodeCommand with id.
Qt3DCore::QNodeCommand::CommandId QNodeCommand::commandId() const▲
Returns commandId.
QVariant QNodeCommand::data() const▲
Qt3DCore::QNodeCommand::CommandId QNodeCommand::inReplyTo() const▲
Returns the id of the original QNodeCommand message that was sent to the backend.
QString QNodeCommand::name() const▲
void QNodeCommand::setData(const QVariant &data)▲
Sets the data (data) in the backend node to perform the operations requested.
See Also▲
See also data()
void QNodeCommand::setName(const QString &name)▲
Sets the data (name) in the backend node to perform the operations requested.
See Also▲
See also name()
void QNodeCommand::setReplyToCommandId(Qt3DCore::QNodeCommand::CommandId id)▲
Sets the command id to which the message is a reply.