Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-88778

SCXML state machine start and stop have errors in QML

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.1
    • XML: SCXML
    • None
    • windows 10

    Description

      在QtQuick项目中创建一个SCXML文件,在c++主程序中注册状态机,在QML中,调用start()命令启动状态机,在QML中更改状态机的状态(使用submitEvent函数),然后在QML中调用stop()命令。

      然后在QML中再次启动状态机,状态机有多个活动状态。初始状态是活动的,最后一个状态(状态机停止之前)也是活动的。

       

      Create a SCXML file in my Qt Quick project, register the state machine in the C++ main program, and in QML, call start() command starts the state machine, changes the state of state machine in QML(using submitEvent function), then call stop() command in QML.

      Then in QML, starts the state machine again, the state machine has multiple active states. The initial state is active and the last state (before the state machine stops) is also active.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ulherman Ulf Hermann
            james-qu James Qu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes