Thanks for you reply.
My question is like this:
There Menu1 that consists of sub menuA , sub menuB and so on
Menu2 that consists of sub menu AA, sub menu BB and so on
Menu3 that consists of sub menu AAA, sub menu BBB and so on
... ....
When I click the sub menu AA, The value of status becomes true. But when I click any other menu except sub menu AA, I hope the value of status will become false. I do not hope to connect each sub menu with the signal because there are too many sub menus.
connect(menuAction, SIGNAL(triggered()), this, SLOT(valueChanged));
My question is: Is there some way we can do it in a simpler way?
Bookmarks