Flickable issue with MouseArea and preventStealing
-
I'm using Qt 4.7.4. I have a ListView with a MouseArea filling it. I'm using the MouseArea's containsMouse property (with hoverEnabled) to set properties for a custom scrollbar I've built.
I've noticed that when I flick by holding the mouse inside the ListView, upon release of the mouse button my containsMouse is set to false. It looks like the flicking event takes over my MouseArea and invalidates it (if that's the right term).
I've tried using the preventStealing property, but once that is set to true, my ListView does not allow flicking by mouse drag altogether.
The preventStealing property is mentioned in the documentation with reference to Flickable, but am I using it wrong?
"http://doc-snapshot.qt-project.org/4.8/qml-mousearea.html#preventStealing-prop":http://doc-snapshot.qt-project.org/4.8/qml-mousearea.html#preventStealing-prop