I disagree. I just tested your code and the sequence, when dragging nd holding the right button is:L
Mouse Pressed
Mouse Moved
Mouse Moved
Mouse Moved
Mouse Moved
Mouse Moved
Mouse Moved
Mouse Moved
Mouse Moved
Mouse Moved
Mouse Moved
Mouse Moved
Mouse Moved
Mouse Released
Context Menu
Mouse Pressed
Mouse Moved
Mouse Moved
Mouse Moved
Mouse Moved
Mouse Moved
Mouse Moved
Mouse Moved
Mouse Moved
Mouse Moved
Mouse Moved
Mouse Moved
Mouse Moved
Mouse Released
Context Menu
To copy to clipboard, switch view to plain text mode
As you can see this works correctly - the context menu event comes last.
You can choose to ignore the event(no menu will be displayed ) if a drag was previously detected. You can do this with the code snipped I posted above.
I would like the right-click-drag action to ignore both the mouse-press and context-menu events, and to go straight to the mouseMoveEvent handler.
You must know that you cannot ignore the mouse press event and just "skip" to mouse move. But you can CHOOSE to do nothing in certain situations.
regards
Bookmarks