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?


  • Moderators

    Hi! With ...

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

    ... state is transition's parent.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.