Hi,
I am trying to determine how to accomplish drag and drop between two ListView’s in QtQuick 2.0. It looks like it should be possible through a combination of Drag, DropArea, VisualDataGroup and Package but I can’t seem to get anything to work and it feels like I am doing something fundamentally wrong.
Before I delve anything further, I thought I would check to see if anyone else has already got this working or if there is any example
code I may have missed?
Essentially, what I want to be able to do is to drag a delegate from one ListView to another ListView in order to move the item in the
underlying model. As I drag over the delegates in the target list, I want each item to visually separate so that the user can see where the item will be dropped. Standard drag and drop behaviour really.
Furthermore, I also want it to be possible to drag and drop within the same list for re-ordering purposes.
Is this possible in the current version of QtQuick? I can get drag and drop reordering to work within a single ListView by following the Dynamic View Ordering tutorial, but I can’t figure out how to make it to work with multiple ListViews.
Thanks,
Paul Drummond
↧