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.
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.
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?
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks