Important: Please read the Qt Code of Conduct -

QScxml Statemachine Doubts

  • HI ,

    I am new to Qt,
    I am using Qt scxml approach for my state machine.

    And My Requirement is,

    I need to set my initial Child state conditionally

    Say like I am Having states S1, S2, S3

    S1 Substates - S11,S12,S13,S14
    S2 Substates - S21,S22,S23,S24

    I am able to transit in forward manner like as below
    Here I will set my initial state of S1 as S11
    S1-> S11,S12,S13,S14 ->S2->S21,S22,S23,S24

    But in reverse its not working if i do like this
    Here in reverse , i need to set initial sate of S1 as S14
    S11,S12,S13,S14 <-S1<-S2 <- S21,S22,S23,S24

    How to resolve this ?
    Whether Qt 5.7 will support this ?
    Is it a bug in Qt?

  • Lifetime Qt Champion


    The QtSCXML module being currently a technical preview, you should bring your questions to the interest mailing list. You'll find there QtSCXML's developers/maintainers. This forum is more user oriented and there's likely less people having already used that module here.

Log in to reply