内容表

上一话题

Qt3DCore.QNode

下一话题

Qt3DCore.QNodeCreatedChangeBase

Qt3DCore.QNodeCommand

QNodeCommand class is the base class for all CommandRequested QSceneChange 事件。 更多 …

Inheritance diagram of PySide2.Qt3DCore.Qt3DCore.QNodeCommand

New in version 5.10.

概要

函数

详细描述

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 )

注意

This constructor is deprecated.

param id

QNodeId

构造新 QNodeCommand with id .

PySide2.Qt3DCore.Qt3DCore.QNodeCommand. commandId ( )
返回类型

long

Returns .

PySide2.Qt3DCore.Qt3DCore.QNodeCommand. data ( )
返回类型

object

Returns data.

另请参阅

setData()

PySide2.Qt3DCore.Qt3DCore.QNodeCommand. inReplyTo ( )
返回类型

long

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

PySide2.Qt3DCore.Qt3DCore.QNodeCommand. name ( )
返回类型

unicode

Returns name.

另请参阅

setName()

PySide2.Qt3DCore.Qt3DCore.QNodeCommand. setData ( data )
参数

data – object

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

另请参阅

data()

PySide2.Qt3DCore.Qt3DCore.QNodeCommand. setName ( name )
参数

name – unicode

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

另请参阅

name()

PySide2.Qt3DCore.Qt3DCore.QNodeCommand. setReplyToCommandId ( id )
参数

id – long

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