@AnneRanch said in QMenu C++ code help:
That is the issue - how to change "checkable" property when there is access only to QMenu.
That is what you wrote. So I took the time to answer it exactly.
You cannot get directly from a QAction * to the QMenu you put it on, unlike the other way round which you asked and is answered. However, you can use QList<QObject *> QAction::associatedObjects() const from a QAction and you should find the QMenu it has been added to among them. And you add submenus to a menu. Which answers the new question.