Details
-
Suggestion
-
Resolution: Done
-
Not Evaluated
-
5.7.1
-
None
-
6132b77db9d180d7a86982b0ca2eeae202a72e55 (qt/qtbase/5.15)
Description
It is (well?) known, that upon deletion of a parent all its children will be axed as well.
Unknown for me was, that QStateMachine::addState will put it in the same kind of relationship, so the added QState will be deleted as well. A short word on that in the documentation would be nice.
http://doc.qt.io/qt-5/qstatemachine.html#addState
In contrast: removeState states explicitly that the ownership is released.