How to trigger QMenu on right click.
I am creating QMenu object in the function of my class and I connect this object to one of my slots using
connect(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?
The menus example should contain the info you need.
Hope it helps
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?