Drag object from one component to another
I'm building an application that should be able to drag dynamically loaded QML objects from a ListView to a rectangle, just like a regular GUI designer.
I have successfully loaded the QML objects to a model and show them in a ListView.
But I can't find out how to drag a new object of the clicked item in the ListView to the rectangle.
Is this even possible with QML?
Is "that":http://doc.qt.nokia.com/4.7-snapshot/declarative-modelviews-package.html what you are looking for?
That looks like a really good element.
I'll try to use that.
Is it possible to drag the delegate to a position instead of just clicking?
Maybe, another way is to change the parent property.
I am really interested to see how dragging an element from one container to another is done.