How to add "checkable" to QMenu - using C++ code ?
Solved
General and Desktop
-
I have looked at several examples and still have no clear no idea how to add checkable widget - preferred simple "checkbox"- to the menu.
My primary problem is how to specify "checkbox" to be used..QMenu *TEST = subMenu[index]->addMenu(" subsub TEST menu " + i );
-
@AnneRanch
You can make an Action in a
QMenu
checkable withaction->setCheckable(true);
toggled(true/false)
is the signal to connect and react when action is checked/uncheckedor check it yourself with:
isChecked()
-