What is the difference between contextMenuEvent and handling mousepressEvent and checking if the rightbutton was clicked?
What is the difference between contextMenuEvent and handling mousepressEvent and checking if the rightbutton was clicked?
From QContextMenuEvent docs:
Context menu events are sent to widgets when a user performs an action associated with opening a context menu. The actions required to open context menus vary between platforms; for example, on Windows, pressing the menu button or clicking the right mouse button will cause this event to be sent.
J-P Nurmi
Bookmarks