Results 1 to 5 of 5

Thread: QListWidget Dragging Problem after scrolling down the list

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2012
    Posts
    16
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy QListWidget Dragging Problem after scrolling down the list

    I am creating A Sortable List in Qt. The Code works perfectly well for Downward Scroll but when i having some issues getting the draggable item after i scroll the list down. I have added some test case screenshot for better understanding







    Well this is the test case code

    Qt Code:
    1. ui->listWidget->addItem("SongOne");
    2. ui->listWidget->addItem("SongTwo");
    3. ui->listWidget->addItem("SongThree");
    4. ui->listWidget->addItem("SongFour");
    5. ui->listWidget->addItem("SongFive");
    6. ui->listWidget->setDragDropMode(QAbstractItemView::InternalMove);
    7. ui->listWidget->setDragEnabled(true);
    8. ui->listWidget->setAcceptDrops(true);
    9. ui->listWidget->setDropIndicatorShown(true);
    10. ui->listWidget->viewport()->setAcceptDrops(true);
    11. ui->listWidget->setSelectionMode(QAbstractItemView::SingleSelection);
    To copy to clipboard, switch view to plain text mode 


    Thankz for taking the time in reading my post. Do help me if you have any hint on what i am missing out.I think i am missing setting some property. In the main Program(not the test code), i tried rewriting the `dragMoveEvent` and few more method, but no use.
    Attached Images Attached Images

Similar Threads

  1. Round Scrolling of List Items in QListWidget
    By vivek.panchal in forum Qt Programming
    Replies: 2
    Last Post: 29th August 2016, 09:52
  2. Dragging text/uri-list: Qt inserts garbage
    By drhex in forum Qt Programming
    Replies: 1
    Last Post: 22nd September 2011, 20:45
  3. Replies: 4
    Last Post: 10th May 2010, 22:12
  4. Kinetic scrolling in QListWidget
    By jimiq in forum Qt Programming
    Replies: 2
    Last Post: 16th September 2009, 09:43
  5. Replies: 11
    Last Post: 4th July 2006, 15:09

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.