Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved 2 problems using statemachine with scxml

    General and Desktop
    scxml qml statemachine
    1
    1
    109
    Loading More Posts
    • 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
      Fakeleather last edited by

      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 Reply Quote 0
      • First post
        Last post