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


    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

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