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

[REG 5.15.2->5.15.3]: ScxmlStateMachine submitEvent should not always expect data

    XMLWordPrintable

Details

    • Windows

    Description

      My test code:

      import QtScxml 5.8 as Scxml
      
      Scxml.StateMachineLoader {
          id: myLoader
          source: "statemachine/App.scxml"
      }
      
      property QtObject stateApp: myLoader.stateMachine
      
      stateApp.submitEvent("tr_goToEmergency") // Error insufficient arguments
      

      In 5.15.3 I get the error at the last line: "Insufficient arguements"
      The documentation says it should be possible: https://doc.qt.io/qt-5/qml-qtscxml-scxmlstatemachine.html#submitEvent-method-1

      And it always worked okay up to Qt 5.15.2. It works when I add null as second argument, however this shouldn't be needed.

      Attachments

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

        Activity

          People

            vuokko Juha Vuolle
            jeroen_o Jeroen Oomkes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes