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 información...

Encabezado: #include <QScxmlDynamicScxmlServiceFactory>
CMake: find_package(Qt6 REQUIRED COMPONENTS Scxml)
target_link_libraries(mytarget PRIVATE Qt6::Scxml)
qmake: QT += scxml
Heredado de: 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 desde archivos que una máquina de estados principal solicita en tiempo de ejecución, a través del atributo « srcexpr » del elemento « <invoke> ».

Documentación de las funciones de 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 secundario de tipo « <param> » como « parameters », el contenido del atributo « names » como « names » y el elemento principal « QObject » como « 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.