Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. ListView that is reorderable by drag and drop
Forum Updated to NodeBB v4.3 + New Features

ListView that is reorderable by drag and drop

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    johnmcd
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved