[Qt-qml] Mouse event propagation on stack
Mark Tucker
mark.tucker at airborne.aero
Thu Dec 2 10:08:08 CET 2010
Hello,
I believe that what you require is to set the accepted member of the
mose event that comes in with the various mouse handlers to true. see
http://doc.qt.nokia.com/4.7/qml-mouseevent.html
Mark T
From: qt-qml-bounces at trolltech.com [mailto:qt-qml-bounces at trolltech.com]
On Behalf Of claudiu.chetan at nokia.com
Sent: 02 December 2010 08:39
To: qt-qml at trolltech.com
Subject: [Qt-qml] Mouse event propagation on stack
Hello,
I have 2 components (2 basic rectangles) which overlap
The one on the bottom of the stack contains a mouseArea with hover
enabled.
The mouse events seem to propagate to all the elements in the stack, not
limiting itself to only the top element in the stack(similar to HTML
elements).
Is there something similar to javascript's stopPropagation command?
I've managed to implement this behavior by adding a dummy mouse area in
the top element which has empty handlers for all the events.
But I don't like the idea of having to manage all the possible cases for
mouse interactions.
Thanks,
Claudiu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20101202/33e89f0e/attachment.html
More information about the Qt-qml
mailing list