I presume that Open and Close are menu items rather than submenus. When you added them to the QMenu, the return value was a QAction *. Call QAction::setEnabled(false) on those, to have them grayed out.
I presume that Open and Close are menu items rather than submenus. When you added them to the QMenu, the return value was a QAction *. Call QAction::setEnabled(false) on those, to have them grayed out.
Bookmarks