I have a main window with a toolbar which I've added some QActions to.
QToolBar::addAction lets me specify a slot to be called when the action is triggered, i.e. clicked on with the left mouse button.
How can I have a slot called when right-clicking the QAction (for e.g. a context menu)?
Bookmarks