QState addTransition ownership

  • The documentation states that calling addTransition with an AbstractTransition will change ownership of that transition.

    When calling addTransition(const QObject *sender, const char *signal, QAbstractState *target) it returns a QSignalTransition.

    Is the QState the owner of the QSignalTransition or do we need to mange the QSignalTransition on our own?

  • Hi! With ...

    auto transition = state.addTransition(...);

    ... state is transition's parent.

Log in to reply