Drag object from one component to another
-
wrote on 27 Apr 2011, 09:13 last edited by
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?
-
wrote on 27 Apr 2011, 09:19 last edited by
Is "that":http://doc.qt.nokia.com/4.7-snapshot/declarative-modelviews-package.html what you are looking for?
-
wrote on 27 Apr 2011, 09:31 last edited by
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? -
wrote on 27 Apr 2011, 09:57 last edited by
Maybe, another way is to change the parent property.
-
wrote on 11 May 2011, 18:01 last edited by
I am really interested to see how dragging an element from one container to another is done.