Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Drag and drop QListView
Forum Updated to NodeBB v4.3 + New Features

Drag and drop QListView

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.0k 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.
  • A Offline
    A Offline
    alexoparin
    wrote on last edited by
    #1

    Hi
    There's a scroll issue when i move an item withing a QListView with drag and drop.

    I added both QListWidget and QListView to the layout. Added several items to QListWidget and then set the QListView’s model to QListWidget::model();
    Then I set both’s
    @1.plistWidget->setDragDropMode(QAbstractItemView::InternalMove);
    2.plistView->setDragDropMode(QAbstractItemView::InternalMove);@
    and what I get is that QListWidget works properly (it does’n scroll anywhere, and the moved item stays selected) but QListView doesn’t behave the same way (it scrolls to top and selects eithe the index item used to be at or the one right next to where it was depending on moving the item up or down the list).
    Seems like I just don’t know something about it but I can’t figure this out.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Please don't post the same thread three time, have some patience.

      You can also check the "bug report system":http://bugreports.qt-project.org to see if it's something that has been reported

      "Duplicate":http://qt-project.org/forums/viewthread/37018/

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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