I am trying to update the menu bar for different mdi windows. To do that, I tried to step down the menu tree, removing old QMenu items by removing the action from the QMenuBar, and replacing them using insertMenu(). However, the inserted menu does not appear in the QMenuBar action list, leading to later failure.
Starting over, using QMenu::clear() also deletes all the owned actions unless they are used elsewhere. In order to be careful and avoid failure modes at close(), the entire menu bar, toolbar, menus, actions and connections seem to need rebuilding at every new subwindow or every change within a subwindow. Is this as it seems or did I miss something?
Bookmarks