PySide6.QtScxml.QScxmlInvokableServiceFactory

class QScxmlInvokableServiceFactory

QScxmlInvokableServiceFactory 类创建可调用的服务实例。更多

PySide6.QtScxml.QScxmlInvokableServiceFactory 的继承图

继承者: QScxmlStaticScxmlServiceFactory, QScxmlDynamicScxmlServiceFactory

概要

属性

方法

虚拟方法

注意

本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。

详细描述

每个服务实例代表SCXML文档中的一个元素。每次实际调用服务时,都会创建一个新的QScxmlInvokableService实例。

注意

当使用from __feature__ import true_property时,属性可以直接使用,否则通过访问器函数使用。

property invokeInfoᅟ: InvokeInfo

此属性保存传递给构造函数的InvokeInfo

Access functions:
property namesᅟ: list of int

此属性保存传递给构造函数的名称。

Access functions:
property parametersᅟ: list of QScxmlExecutableContent.ParameterInfo

此属性保存传递给构造函数的参数。

Access functions:
__init__(invokeInfo, names, parameters[, parent=None])
Parameters:
  • invokeInfoInvokeInfo

  • names – 整数列表

  • parameters – QScxmlExecutableContent.ParameterInfo 的列表

  • parentQObject

abstract invoke(parentStateMachine)
Parameters:

parentStateMachineQScxmlStateMachine

Return type:

QScxmlInvokableService

使用构造函数中给定的参数调用服务,将parentStateMachine作为父级传递。返回新的可调用服务。

invokeInfo()
Return type:

InvokeInfo

属性 invokeInfoᅟ 的获取器。

names()
Return type:

整数列表

属性 namesᅟ 的获取器。

parameters()
Return type:

QScxmlExecutableContent.ParameterInfo 的列表

属性 parametersᅟ 的获取器。