I created QMenu MainMenuon top of mine MainWindowin my application. Since everyone is used to it, I have the following QMenuMain menus:
File - Edit - SuperHeavyExpertMenus - Settings - Help
I would like to hide the auxiliary tree SuperHeaverExpertMenusinitially, when the program starts, because it encodes many settings that can confuse novice users.
I want to show this subtree with SuperHeavyExpertMenuif the checkbox in the settings is true, for example.
I can hide the kids QActionsabove QMenu, vie QAction:setVisible(false). but can i do it for QMenu?
Is there any way to hide QMenu?
source
share