Quantcast
Channel: How to remove an menu item from a QMenu for Qt4? - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article



How 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
Browsing latest articles
Browse All 2 View Live




Latest Images