QNodeCommand

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

Inheritance diagram of PySide2.Qt3DCore.Qt3DCore.QNodeCommand

New in version 5.10.

Synopsis

Functions

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.

class PySide2.Qt3DCore.Qt3DCore.QNodeCommand(id)

Note

This constructor is deprecated.

param id:

PySide2.Qt3DCore.Qt3DCore.QNodeId

Constructs a new QNodeCommand with id .

PySide2.Qt3DCore.Qt3DCore.QNodeCommand.commandId()
Return type:

int

Returns .

PySide2.Qt3DCore.Qt3DCore.QNodeCommand.data()
Return type:

object

Returns data.

See also

setData()

PySide2.Qt3DCore.Qt3DCore.QNodeCommand.inReplyTo()
Return type:

int

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

PySide2.Qt3DCore.Qt3DCore.QNodeCommand.name()
Return type:

str

Returns name.

See also

setName()

PySide2.Qt3DCore.Qt3DCore.QNodeCommand.setData(data)
Parameters:

data – object

Sets the data (data ) in the backend node to perform the operations requested.

See also

data()

PySide2.Qt3DCore.Qt3DCore.QNodeCommand.setName(name)
Parameters:

name – str

Sets the data (name ) in the backend node to perform the operations requested.

See also

name()

PySide2.Qt3DCore.Qt3DCore.QNodeCommand.setReplyToCommandId(id)
Parameters:

id – int

Sets the command id to which the message is a reply.