How to drag an item from one ListView to another
-
Hi, everyone!
I started to learn QML recently. And I faced the problem of dragging.
I would like to know is it possible to drag an item from one ListView to another?
I learnt Drag and Drop in the Documentation, but I didn’t understand how to implement it.``` -
Hi
Just to make sure you saw this free book
https://qmlbook.github.io/
:) -
@Nelly
Ok, didn't read it yet ;)
This tut
http://doc.qt.io/qt-5/qtquick-tutorials-dynamicview-dynamicview1-example.html
Goes into drag drop (inner)
http://doc.qt.io/qt-5/qtquick-tutorials-dynamicview-dynamicview3-example.html
maybe it will give info.Also
http://doc.qt.io/qt-5/qtquick-draganddrop-example.htmlIn c++, Views have default drag and drop if enabled. I wonder if QML somehow offer the same.
Let me check it.
http://stackoverflow.com/questions/26045587/using-drag-and-drop-with-listview-to-create-an-inventory-uiIs the closest sample that come up. (credits to wieland)
Give it some days. Maybe others have more suggestions.