[Interest] QT SCXML: How to access Event parameter from State?

Ulf Hermann ulf.hermann at qt.io
Fri Mar 16 18:38:16 CET 2018


> In the example above, how would we get access to Event parameter for "state1" and "state5"?

You can access the event currently being processed via the data model. The EcmaScript data model has a readonly property "_event" and the C++ data model has a method scxmlEvent(). The null data model doesn't handle events, so without a data model, you can't access them.

br,
Ulf



More information about the Interest mailing list