QListWidget: how to get exact dragged and dropped item and positions



  • I have a single QListWidget in which I can drag and drop QListWidgetItems inside it(To change the order). I have extended the QListWidget and overridden the dropEvent.

    Is it possible to identify the exact item that was moved during the drag and drop event with the position change it had?
    Thanks in advance.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    You might be able to get the information you want using selectedIndexes.

    Hope it helps


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.