how to detect menu selection /click?
Unsolved
General and Desktop
-
SOLVED
This is really stupid question , but how to detect / capture menu selection ?
I have code build , not QtDesigner GUI , menu with submenus and cannot figure our how to capture sub menu selection / mouse click on sub menu.
All that is pretty easy using QtDesigner, but I need C++ code to do that.
I been trying "connect" but it is messy and does not work well. ( Hard to keep track,,,)Suggestions are OK, I can code ...
Sample in C++ would be great, even "button push" ...
Thanks -
A menu has an action (as already told you more than once) so you should look at the signals of QAction and you will find
- hovered
- triggered
- toggled
So connect those signals to a slot and you will get notified.