For a python plugin I need to remove/disable some UI elements so that they can't be accessed by the user. Thus, I removed the respective actions, toolbars and menus from the interface.
However, in order to prevent the user from turning back on the disabled elements, their corresponding menu entries also have to be removed. Unfortunately, I didn't find a way to access the viewmenu's entries "Toolbars" and "Panels" (which contain the desired actions). They are not returned when calling the viewmenu's children() method. Likewise, the findChild()/findChildren() methods do not return anything helpful either.
I already had a look on the QGIS git repository and it seems that the desired menus and actions are not added to the viewmenu as its child elements. They seem to do not have any parent element at all..
So does anybody know how I can access the "Panels" and "Toolbars" menus from out my plugin code?