Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. 2 problems using statemachine with scxml
Forum Updated to NodeBB v4.3 + New Features

2 problems using statemachine with scxml

Scheduled Pinned Locked Moved Unsolved General and Desktop
scxmlqmlstatemachine
1 Posts 1 Posters 272 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Fakeleather
    wrote on last edited by
    #1

    Hi, I'm building simple voice app using QScxmlStateMachine with scxml file and qml(mainly),
    there's 2 stuck points matching voice interface concept.

    1. I'm looking for the event handling method for each state.
      for example, let's say that there's a state having some events to transit to other state.
      I want to manage the event if it's not processed by the current state and raise errorEvent.
      as I'm testing, the wrong event(if I say) seems just dropped or queued without notification.
      how can I handle that..?

    2. how can I implement "back" command efficiently which is literally backing to the previous state?
      for now, there seems only one way which draws transition tag for each states - conditioning by previous state!
      Could there be any functions to use like goToState(target) so that I can make state stack and pop the previous one and use..?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved