Qt Code:
for (int i = 0; i < 6; i++) { action->setCheckable(true); if (i == 3) { action->setMenu(subMenu); } menu->addAction(action); }To copy to clipboard, switch view to plain text mode
The action in the menu has a sub menu, when you active this action, only show the sub menu, but can't be checked, why?
Bookmarks