Qt World Summit: Register Today!

How to disable Pixmap of selected rows in QListWidget while dragging

  • Hello,

    i have rows with a 140px height in QListWidget. If the user drag the rows with the mouse, one does not see the underlying folder into which the line could be pushed (see Screenshot).

    Is it possible to get a simple DragCursor without the pixmap of each selected line without much effort?
    Currently is only QListWidget with a QAbstractItemDelegate for row painting.

    Here you can see the dragging of 3 rows to a folder, you can't see anything :/

    alt text

  • Lifetime Qt Champion


    You likely have to reimplement startDrag and handle the pixmap you want to use yourself.

  • @SGaist Thank you, I was hoping there is a switch to disable :)
    Then I must go this way. Many Thanks for your time.

Log in to reply