Hi all,
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: https://gist.github.com/edart76/7e1ebfe7252c6d41de947c0ca965ee07
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 sender()
.
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?