[Qt-qml] How to make a MouseArea sink a drag event?

Louis Koziarz lkoziarz at uico.com
Thu Apr 15 22:04:13 CEST 2010


Hi all,

I'm working on a flickable ListView where the items in the Model contain
MouseArea buttons.  The MouseAreas work correctly (with onPressed,
onClicked, etc), but when the mouse is down and moves inside of the
MouseArea, the flickable area underneath starts to move.

Is there some way to tell the MouseArea to cancel or sink the drag event and
not pass it on to the ListView?  This normally isn't a problem on a desktop
environment, but in a small embedded system with a touchscreen the
transition from button to flick causes some problems.

Thanks,
Louis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100415/a34ae28f/attachment.html 


More information about the Qt-qml mailing list