On Fri, 16 Apr 2010 06:04:13 am ext Louis Koziarz wrote:
> 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.

If this is due to unintentional movement due to touch screen jitter, then it 
sounds like the drag threshold is not set to a large enough value.  To set the 
drag threshold:

- if you are using the QML runtime, add command line option -dragthreshold N
- if you are writing a C++ application, set QApplication::startDragDistance

> 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.

There is no way to prevent a Flickable from performing the drag, besides 
setting Flickable::interactive to false.

-- 
Martin
_______________________________________________
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to