ListView that is reorderable by drag and drop



  • It would be very useful if the QML ListView had a mode that would allow items in the list to be reordered via drag and drop. Is this available or planned?

    A couple of refinements included with this feature could be to show an insertion cursor where the dragged item will be inserted if dropped, or have live swapping as the item is dragged. Also, when swapping occurs, whether when the item is dropped or with live swapping, there should be a smooth animation showing the item sliding into its new position.

    It would also be useful if the list would autoscroll while you are dragging an item, so that you can move it further down on the list than the current viewable items.

    There could many uses of a reorderable list, such as allowing a user to rearrange the order of songs in a playlist.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.