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. How to disable Pixmap of selected rows in QListWidget while dragging
Qt 6.11 is out! See what's new in the release blog

How to disable Pixmap of selected rows in QListWidget while dragging

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.1k Views 2 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.
  • R Offline
    R Offline
    roundcubes
    wrote on last edited by
    #1

    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

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

      Hi,

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

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

      R 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

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

        R Offline
        R Offline
        roundcubes
        wrote on last edited by
        #3

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

        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