[Qt-qml] Mouse event propagation on stack

claudiu.chetan at nokia.com claudiu.chetan at nokia.com
Thu Dec 2 09:38:45 CET 2010


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/4c9cd885/attachment.html 


More information about the Qt-qml mailing list