On Thursday 28 May 2009, Marco Martin wrote:
> here the problem is that applets would steal mouse events?
> no idea if there is a reliable way to chose between delivering events only
> to the view/containment or to the applet?

qgraphicsview does give us the ability to control it, depending on what we're 
willing to do ;)

we could, for instance, have a QGraphicsItem that doesn't paint anything and 
which is the size of the viewable area positioned at (0, 0) that has a higher 
zValue than any other item on the canvas and use that as a global event 
filter.

all events will first hit that item, and we can filter/react based on what we 
want to achieve.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Software

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to