diff options
author | Dmitrii Akshintsev <dmitrii.akshintsev@qt.io> | 2024-04-15 16:36:13 +0200 |
---|---|---|
committer | Dmitrii Akshintsev <dmitrii.akshintsev@qt.io> | 2024-04-17 11:00:23 +0000 |
commit | 9c8577c12643bf222dc37a5ba2dc1d08dc168f8e (patch) | |
tree | ce92e74c60336f56addb79f979396421fd697959 | |
parent | 0aa429026235aa0e33f1aaa4a42087fa4129238e (diff) |
Add a note about QScxmlStateMachine restart
As part of QTBUG-109371 it was discovered that calling start() after
stop() doesn't result in a "clean" initial step which is contorary
to the existing documentation.
It was agreed that ATM changing documentation to better reflect the
current state is more suitable, than doing a proper "clean".
This commit addresses the documentation issue
Fixes: QTBUG-109371
Change-Id: Iaec8f31b39873a1cdc2809e5773fcaa1e6f5d37c
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
-rw-r--r-- | src/scxml/qscxmlstatemachine.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/scxml/qscxmlstatemachine.cpp b/src/scxml/qscxmlstatemachine.cpp index 1ccd37d..71d35b3 100644 --- a/src/scxml/qscxmlstatemachine.cpp +++ b/src/scxml/qscxmlstatemachine.cpp @@ -2252,14 +2252,16 @@ QBindable<QList<QScxmlInvokableService*>> QScxmlStateMachine::bindableInvokedSer */ /*! - Starts this state machine. The machine will reset its configuration and - transition to the initial state. When a final top-level state + Starts this state machine. When a final top-level state is entered, the machine will emit the finished() signal. \note A state machine will not run without a running event loop, such as the main application event loop started with QCoreApplication::exec() or QApplication::exec(). + \note Calling start() after stop() will not result in a full reset of its + configuration yet, hence it is strongly advised not to do it. + \sa runningChanged(), setRunning(), stop(), finished() */ void QScxmlStateMachine::start() |