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

Public Types

typedef CommandId

Public Functions

QNodeCommand(QNodeId id)
~QNodeCommand()
CommandId commandId() const
QVariant data() const
CommandId inReplyTo() const
QString name() const
void setData(const QVariant &data)
void setName(const QString &name)
void setReplyToCommandId(CommandId id)

Protected Functions

QNodeCommand(QNodeCommandPrivate &dd, QNodeId id)
typedef QNodeCommandPtr

Detailed Description

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

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

Member Function Documentation

QNodeCommand::QNodeCommand(QNodeId id)

Constructs a new QNodeCommand with node.

[protected] QNodeCommand::QNodeCommand(QNodeCommandPrivate &dd, QNodeId id)

Copy constructor.

QNodeCommand::~QNodeCommand()

Destroys the instance of QNodeCommand.

CommandId QNodeCommand::commandId() const

Returns commandId.

QVariant QNodeCommand::data() const

Returns data.

See also setData().

CommandId QNodeCommand::inReplyTo() const

QString QNodeCommand::name() const

Returns name.

See also setName().

void QNodeCommand::setData(const QVariant &data)

See also data().

void QNodeCommand::setName(const QString &name)

See also name().

void QNodeCommand::setReplyToCommandId(CommandId id)

Related Non-Members

typedef Qt3DCore::QNodeCommandPtr

A shared pointer for QNodeCommand.

© 2018 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.