QNodeCommand¶
The
QNodeCommand
class is the base class for allCommandRequested
QSceneChange
events. More…
New in version 5.10.
Synopsis¶
Functions¶
Detailed Description¶
The
QNodeCommand
class is the base class for allQSceneChange
events that have the changeType()CommandRequested
.You can subclass this to create your own node update types for communication between your
QNode
andQBackendNode
subclasses when writing your own aspects.
- class PySide2.Qt3DCore.Qt3DCore.QNodeCommand(id)¶
Note
This constructor is deprecated.
- param id:
Constructs a new
QNodeCommand
withid
.
- PySide2.Qt3DCore.Qt3DCore.QNodeCommand.commandId()¶
- Return type:
int
Returns .
- 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.setData(data)¶
- Parameters:
data – object
Sets the data (
data
) in the backend node to perform the operations requested.See also
- PySide2.Qt3DCore.Qt3DCore.QNodeCommand.setName(name)¶
- Parameters:
name – str
Sets the data (
name
) in the backend node to perform the operations requested.See also
- PySide2.Qt3DCore.Qt3DCore.QNodeCommand.setReplyToCommandId(id)¶
- Parameters:
id – int
Sets the command
id
to which the message is a reply.
© 2022 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.