QNodeCommandclass is the base class for allCommandRequestedQSceneChange事件。 更多 …
New in version 5.10.
QNodeCommandclass is the base class for allQSceneChangeevents that have the changeType()CommandRequested.You can subclass this to create your own node update types for communication between your
QNodeandQBackendNodesubclasses when writing your own aspects.
PySide2.Qt3DCore.Qt3DCore.
QNodeCommand
(
id
)
¶
注意
This constructor is deprecated.
- param id
QNodeId
构造新
QNodeCommand
with
id
.
PySide2.Qt3DCore.Qt3DCore.QNodeCommand.
commandId
(
)
¶
long
Returns .
PySide2.Qt3DCore.Qt3DCore.QNodeCommand.
inReplyTo
(
)
¶
long
Returns the id of the original
QNodeCommand
message that was sent to the backend.
PySide2.Qt3DCore.Qt3DCore.QNodeCommand.
setData
(
data
)
¶
data – object
Sets the data (
data
) in the backend node to perform the operations requested.
另请参阅
PySide2.Qt3DCore.Qt3DCore.QNodeCommand.
setName
(
name
)
¶
name – unicode
Sets the data (
name
) in the backend node to perform the operations requested.
另请参阅
PySide2.Qt3DCore.Qt3DCore.QNodeCommand.
setReplyToCommandId
(
id
)
¶
id – long
Sets the command
id
to which the message is a reply.