[Development] 4.8 "flickable" versus "mousearea" drag fix
mardy at users.sourceforge.net
Wed Jul 25 10:36:37 CEST 2012
On 07/24/2012 09:01 PM, Rick Stockton wrote:
> Hi. This is WRT fix
> https://codereview.qt-project.org/#change,30222,patchset=2 for 4.8
> The changeset allows drag actions to occur with more 2D freedom, but it
> steals the mouse (and prevents stealing by the parent "flickable") in
> order to do so.
I don't think that the patch does anything evil to the grab. Even
without it, you can still drag an item in a direction perpendicular to
the flickable's axis.
The only thing that the patch does is that it makes it possible to
change the Drag.axis while the drag is still occurring; so that, for
instance, once a ListView item has been dragged away from the parent
ListView, we can allow it to be dragged everywhere on the screen.
The issue is described here:
Just try running the attached drag.qml file before and after the fix.
http://blog.mardy.it <- geek in un lingua international!
More information about the Development