Qt Forum

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

    Unsolved QtScxml State Machine access available states and transitions?

    General and Desktop
    2
    6
    65
    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.
    • Levi
      Levi last edited by Levi

      Hello,

      We are looking for a way through the public API to access available states and there transitions. We have found this can be accomplished leveraging the private headers below but are not part of the public API. Is it possible to get this information through the public API?

      #include <private/qscxmlstatemachineinfo_p.h>
      #include <private/qscxmlstatemachine_p.h>
      
      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        If everything that you are looking for is in the private headers then no, you cannot access that with the public API.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 1
        • Levi
          Levi last edited by

          Is there some way to extract it from the QScxmlDataModel?

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            It does not look like it is.

            What is your exact goal ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 0
            • Levi
              Levi last edited by

              We have a development GUI which we are leveraging this to provide the user the option to manually trigger different transitions from the active state. So we need to be able to get the available transitions for a active state and what conditions must be meet for each transition or if it could give the current allowed transitions would be sufficient. Then when a transition is requested through the GUI we need feedback on if the transition was successful.

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                You might want to check KDAB's GammaRay. IIRC they have a tool to inspect state machines.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post