[Qt-interest] Internal Drag and Drop moves in list view
Nathan Hüsken
nathan.huesken at posteo.de
Wed Oct 12 11:12:36 CEST 2011
Hi,
I have an application with 2 listViews. The first holds a set of loaded
items. The second defines an order on a subset of these items.
Both are implemented with the model/view. So they both have their
corresponding model.
So items can be dragged and dropped from the first list view to the second.
Items can also be moved within the second listview.
This all works, but one thing. When I move items in the second listview,
they are not moved but duplicated. I do not know how to change this.
How do I make the difference between "internal moves" for the second
list view and "copies"? I have implemented "removeRows" but it gets
never called.
I hesitate to send my full code here, because it is quite lengthy and I
am not sure which parts are relevant. If you tell me, I will of course
post them here.
Thanks!
More information about the Qt-interest-old
mailing list