IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QNodeCommand Class

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

This class was introduced in Qt 5.10.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QNodeCommand Class

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

Returns data.

See Also

See also setData()

Qt3DCore::QNodeCommand::CommandId QNodeCommand::inReplyTo() const

Returns the id of the original QNodeCommand message that was sent to the backend.

QString QNodeCommand::name() const

Returns name.

See Also

See also setName()

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.

Related Non-Members

 

QNodeCommandPtr

A shared pointer for QNodeCommand.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+