PDA

View Full Version : QMenu close when clicked off



migel
17th August 2012, 11:11
Is there a way to close QMenu pop window when clicked off. Currently it closes when clicked on Action, no no way to check more checkable actions the same time.

high_flyer
17th August 2012, 12:12
This is the designed behavior.
If you want to change it, you will have to subclass, and add some sort of "close" action - either as a menu item, or a button or something, and keep the Menu open until that "close" action is closed.
But then what you want is not a menu, but a sort of a dialog, where you choose items, and then close it - so why not pop a dialog on a specific menu action, have the user check the wanted actions, and execute them when he closes the dialog?