Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
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
istransition
's parent.