I’ve encountered unintuitive behaviour when trying to route events through widgets embedded in a QGraphicsScene, via QGraphicsProxyWidget. See a simple demonstration of the effect here: Showing unintuitive event flow when embedding widgets in QGraphicsScene · GitHub
In short, when you click anywhere on a QGraphicsView (including on an embedded widget), the View and the Scene always receive the event first, before passing it to the desired widget. The event types seem the same, and I can’t find an event equivalent of
This means that in the View method, there is no way to know which mouse events are desired for the view itself (selection, dragging etc), and which are desired for widgets within it.
How on earth should this be solved?