Are you sure you want to do it with widgets? Using QGraphicsView and its items instead would be much simpler for you. And you'd get the event behaviour you want for free.
Well, yes but provided there is no widget on top of it. Widgets' rectangles shouldn't overlap and I understand that in this case they do.In my opinion, if a widget is shown, it can be clicked!
The code is probably in QCoreApplication::notify(). You can reimplement it if you want, but I really wouldn't do that here. What you could do is to bounce back those events in the "parent" as it is the one that knows where each widget is. But I'd suggest switching to Graphics View, it should really be helpful here and possibly in future as well.What I find incredible is that unused events are forwarded to the parent (and translated in the parent context) automatically. So there is a piece of code that does this somewhere. That exactly what I need, but with a different destination.
Bookmarks