The QScxmlDynamicScxmlServiceFactory class creates SCXML service instances from documents loaded at runtime. 更多...
头: | #include <QScxmlDynamicScxmlServiceFactory> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS Scxml)
target_link_libraries(mytarget PRIVATE Qt6::Scxml) |
qmake: | QT += scxml |
继承: | QScxmlInvokableServiceFactory |
QScxmlDynamicScxmlServiceFactory (const QScxmlExecutableContent::InvokeInfo & invokeInfo , const QList<QScxmlExecutableContent::StringId> & 名称 , const QList<QScxmlExecutableContent::ParameterInfo> & 参数 , QObject * parent = nullptr) |
virtual QScxmlInvokableService * | invoke (QScxmlStateMachine * parentStateMachine ) override |
Dynamically resolved services are used when loading
SCXML
content from files that a parent state machine requests at runtime, via the
srcexpr
attribute in the
<invoke>
元素。
Creates a factory for dynamically resolved services, passing the attributes of the
<invoke>
element as
invokeInfo
, any
<param>
child elements as
参数
, the content of the
名称
attribute as
名称
,和
QObject
parent
parent
.
[override virtual]
QScxmlInvokableService
*QScxmlDynamicScxmlServiceFactory::
invoke
(
QScxmlStateMachine
*
parentStateMachine
)
重实现: QScxmlInvokableServiceFactory::invoke (QScxmlStateMachine *parentStateMachine).