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. QtQuick2: Drag and Drop between two ListViews
Forum Updated to NodeBB v4.3 + New Features

QtQuick2: Drag and Drop between two ListViews

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 1.4k 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.
  • P Offline
    P Offline
    pdrummond
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bounce
      wrote on last edited by
      #2

      Hi,

      I'm actually looking at something similare, did you get anywhere ?

      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