You have basically three choices:
1) Take a look at Qt sources to see how addAction is implemented
2) Connect a slot to signal destroyed() of each action and see whether it fires when you destroy (destroy, not close) the menu
3) Think what would happen in this situation and which solution is more logical:
Qt Code:
toolBar->addAction(action); menu->addAction(action); delete toolBar;To copy to clipboard, switch view to plain text mode
Bookmarks