[Qt-interest] QTouchEvent/QGestureEvent propagation

Wathek LOUED wathek at gmail.com
Sun Apr 10 22:33:34 CEST 2011


Hi all,

I've noticed that the Events in Qt using the
QGraphicsView/QGraphicsScene/QGraphicsItem are spread from the QGraphicsView
then to the QGraphicsScene and the to the item that got the lowest Z-Index
to the most top item.

I think that that's a bit weird cause generally when using QTouchEvent and
QGesture we look at the most top element so imagine that you programmed a
gesture and that that gesture occured at position (x, y) and in that
position there's 4 items that are grabbing the same gesture, so it'll be
grabbed by all the item and not the top element won't it ?

I'm trying to find a way to make it grabbed by only the most top element at
the position (x, y) any one could help me for that please ?

Thank you so much

Sincerely
W.L
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110410/0f34ffc4/attachment.html 


More information about the Qt-interest-old mailing list