QScxmlStateMachine add runtime warning


As suggested by Ulf, in addition to correcting the documentation
runtime warning will be helpful. This commit adds the warning
and a test for that

Change-Id: I6dbd727e493431d7d71efbc5b527df8d67d50dcd
Fixes: QTBUG-109371
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
commit2c966b97be56557007f198ee906844f78ef2944a
parent9c8577c12643bf222dc37a5ba2dc1d08dc168f8e
authorDmitrii Akshintsev <dmitrii.akshintsev@qt.io>
committerDmitrii Akshintsev <dmitrii.akshintsev@qt.io>
commit timeWed, 17 Apr 2024 11:00:26 +0000