Hi,

I have a situation where I'd like to ignore the behaviour of mousePressEvent on a QGraphicsItem if it turns out the user is pressing AND dragging somewhere, not just clicking the button once on the item.

For example, I have an item that pops up a context menu with a right-click, but as a separate use case I want the user to be able to hold right-click and drag in order to draw a line out of the item. In this case I don't want the context-menu to pop up.

I'm not sure how to achieve this, I wonder if anyone has any tips?

(Obviously it would be easier to use a different button, but I'm porting an app and trying to maintain the same functionality )

Thanks

( the items in question are in this screenshot: http://psycle.noodlemaps.net/screeni...w-20070310.jpg -- the lines with arrows are what are emitted with right-click and drag )