How to trigger QMenu on right click.
Unsolved
General and Desktop
-
Hello all.
I am creating QMenu object in the function of my class and I connect this object to one of my slots usingconnect(menu, SIGNAL(triggered(QAction*), SLOT(myslot(QAction*)));
It works ok for left button click, but for right button click it doesn't emits triggered signal and the slot is not calling.
can I do the same for both side button click without subclassing QMenu and reimplement of mouseEvent method?thank you.
-
-
Hi
Just as a note.
No (dropdown) menus I have ever used can be triggered by right clicking. ( some offer properties this way)
so can I ask why you need that?