Sur cette page

QScxmlDynamicScxmlServiceFactory Class

La classe QScxmlDynamicScxmlServiceFactory crée des instances de service SCXML à partir de documents chargés au moment de l'exécution. Plus d'informations...

En-tête : #include <QScxmlDynamicScxmlServiceFactory>
CMake : find_package(Qt6 REQUIRED COMPONENTS Scxml)
target_link_libraries(mytarget PRIVATE Qt6::Scxml)
qmake : QT += scxml
Héritages : QScxmlInvokableServiceFactory

Fonctions publiques

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

Fonctions publiques réimplémentées

virtual QScxmlInvokableService *invoke(QScxmlStateMachine *parentStateMachine) override

Description détaillée

Les services résolus dynamiquement sont utilisés lors du chargement de contenu SCXML à partir de fichiers qu'une machine d'état parente demande au moment de l'exécution, via l'attribut srcexpr de l'élément <invoke>.

Documentation des fonctions membres

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

Crée une fabrique de services résolus dynamiquement, en transmettant les attributs de l'élément <invoke> comme invokeInfo, tout élément enfant <param> comme parameters, le contenu de l'attribut names comme names, et le parent QObject parent .

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

Réimplémente : 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.