Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Does a parent QState emit entered() when a child is entered?



  • Title. I have distinct child states that all should connect to the same slot on entered(). I could just connect each child state specifically to the slot but I was wondering if a child state being entered will cause the parent state to emit entered() also.


  • Lifetime Qt Champion

    Hi,

    AFAIK, no, but you can achieve that by grouping your child states inside a common state. Then use the signal from that one.

    Hope it helps


Log in to reply