Qt3DCore.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)
param id

QNodeId

Constructs a new QNodeCommand with id .

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

long

Returns .

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

object

Returns data.

See also

setData()

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

long

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

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

unicode

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 – unicode

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

See also

name()

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

id – long

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