En esta página

QScxmlDynamicScxmlServiceFactory Class

La clase QScxmlDynamicScxmlServiceFactory crea instancias de servicio SCXML a partir de documentos cargados en tiempo de ejecución. Más...

Cabecera: #include <QScxmlDynamicScxmlServiceFactory>
CMake: find_package(Qt6 REQUIRED COMPONENTS Scxml)
target_link_libraries(mytarget PRIVATE Qt6::Scxml)
qmake: QT += scxml
Hereda: QScxmlInvokableServiceFactory

Funciones Públicas

QScxmlDynamicScxmlServiceFactory(const QScxmlExecutableContent::InvokeInfo &invokeInfo, const QList<QScxmlExecutableContent::StringId> &names, const QList<QScxmlExecutableContent::ParameterInfo> &parameters, QObject *parent = nullptr)

Funciones públicas reimplementadas

virtual QScxmlInvokableService *invoke(QScxmlStateMachine *parentStateMachine) override

Descripción detallada

Los servicios resueltos dinámicamente se utilizan al cargar contenido SCXML de archivos que una máquina de estado padre solicita en tiempo de ejecución, a través del atributo srcexpr del elemento <invoke>.

Documentación de funciones miembro

QScxmlDynamicScxmlServiceFactory::QScxmlDynamicScxmlServiceFactory(const QScxmlExecutableContent::InvokeInfo &invokeInfo, const QList<QScxmlExecutableContent::StringId> &names, const QList<QScxmlExecutableContent::ParameterInfo> &parameters, QObject *parent = nullptr)

Crea una fábrica para servicios resueltos dinámicamente, pasando los atributos del elemento <invoke> como invokeInfo, cualquier elemento <param> hijo como parameters, el contenido del atributo names como names, y el QObject padre parent.

[override virtual] QScxmlInvokableService *QScxmlDynamicScxmlServiceFactory::invoke(QScxmlStateMachine *parentStateMachine)

Reimplementa: QScxmlInvokableServiceFactory::invoke(QScxmlStateMachine *parentStateMachine).

© 2026 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.