[Qt-qml] How-to re-order Items inside a ListView with drag and drop ?

Gregory Schlomoff gregory.schlomoff at gmail.com
Tue Jul 6 06:06:51 CEST 2010


Hi guys,

I'm trying to create a ListView where items can be re-ordered with
drag and drop. Basically, the QML equivalent of this javascript / css
demo : http://www.wil-linssen.com/demo/jquery-sortable-ajax/

What are your thoughts on this?

1. Is it feasible in pure QML? It seems that ListView doesn't like
draggable items: as soon as one tries to drag an item, it jumps to the
top of the list.

2. Should this behavior of draggable items jumping to the top of the
ListView when one tries to drag them be considered a bug ?

3. Should I subclass the QDeclarativeListVIew and make my own ListVIew
with drag and drop support?

4. Can the ability to reorder items with drag and drop inside a
ListView (or a GridView, for that matter) be considered a feature
request for QML ?

Thanks

Greg



More information about the Qt-qml mailing list