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. QML ListView Drag'n'Drop Scroll
Forum Updated to NodeBB v4.3 + New Features

QML ListView Drag'n'Drop Scroll

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 1.8k Views
  • 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.
  • V Offline
    V Offline
    Vitaliy
    wrote on 11 Sept 2018, 18:17 last edited by
    #1

    I make Drag'n'Drop items in the ListView list. Everything works fine, only until the moment when you need to move the item, for example at the end of the list, and all items in the view do not fit - you need to skip the interactive scroll.

    An example that goes in Qt delivery without a scroll. Googled a long time, found nothing normal. Including this https://stackoverflow.com/questions/40789412/scroll-items-during-drag-and-drop-an-item

    I tried it myself. For example, by changing the currentIndex property. The timer started when the event was detected. It seems to work, but after a few seconds the item is lost, which is held by the target.

    In general, does anyone have an idea or a ready-made solution?

    D 1 Reply Last reply 12 Sept 2018, 06:25
    0
    • V Vitaliy
      11 Sept 2018, 18:17

      I make Drag'n'Drop items in the ListView list. Everything works fine, only until the moment when you need to move the item, for example at the end of the list, and all items in the view do not fit - you need to skip the interactive scroll.

      An example that goes in Qt delivery without a scroll. Googled a long time, found nothing normal. Including this https://stackoverflow.com/questions/40789412/scroll-items-during-drag-and-drop-an-item

      I tried it myself. For example, by changing the currentIndex property. The timer started when the event was detected. It seems to work, but after a few seconds the item is lost, which is held by the target.

      In general, does anyone have an idea or a ready-made solution?

      D Offline
      D Offline
      Diracsbracket
      wrote on 12 Sept 2018, 06:25 last edited by Diracsbracket 9 Dec 2018, 06:41
      #2

      @Vitaliy said in QML ListView Drag'n'Drop Scroll:

      move the item [...] at the end of the list, and all items in the view do not fit - you need to skip the interactive scroll

      What do you mean? You want to drag an item to the end of the list without scrolling even though the view does not show the last item or only shows it partially?

      The timer started when the event was detected

      What timer?

      Post some simple, easily testable (by others) code like in the link you posted. I tested it and it almost works. It seems to require some more tweaking. But at least, the idea in there is clear.

      1 Reply Last reply
      0

      1/2

      11 Sept 2018, 18:17

      • Login

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