Answer by koan for How to remove an menu item from a QMenu for Qt4?
Get the QAction for the submenu you want to delete:QAction *menuIdontLike = subMenu->menuAction();mainMenu->removeAction(menuIdontLike);
View ArticleHow to remove an menu item from a QMenu for Qt4?
For a QMenu, we can insert two kind of items, one is QAction, which can be removed by removeAction method, the other is another QMenu, I cannot find a way to remove the menu item from a menu.How to do...
View Article
More Pages to Explore .....