[Interest] Drag and Drop in QtQuick

manish sharma 83.manish at gmail.com
Thu May 22 18:47:00 CEST 2014

I hope you have set the MouseArea::drag.target correctly? Make sure that
your drag target is either Image or it's parent. Also make sure that your
drag.target does not have anchors set for drag.axis direction, for example
a drag target anchored left and right can not be moved in x direction.

On Wed, May 21, 2014 at 2:29 PM, Kamalpreet Grewal <grewalkamal005 at gmail.com
> wrote:

> I am making a QtQuick application. I am making use of drag and drop. I
> want to drag images from one column of the UI into another. When I run
> the application, the image stays in its place and a black tile is what
> gets dragged. I want to be able to drag the image.
> The hierarchy of various components goes as: rectangle --> drag tile -->
> image.
> What should be the relationship between the drag tile component and
> the image component so that on dragging the image is dragged onto the
> drop area?
> --
> Kamalpreet Kaur Grewal
> Blog: http://kamalpreetgrewal.wordpress.com/
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140522/3c034e96/attachment.html>

More information about the Interest mailing list