PDA

View Full Version : How to know the name of the item just dropped.



comvis
22nd May 2019, 09:25
Hello Qt devs, I would like to know a way to extract a QListWidgetItem's names after it was dropped/inserted in another QListWidget. I tried use item(i)->text() but it gave me blank, also tried QModelIndex and QAbstractItem from this https://www.qtcentre.org/threads/63027-QListWidget-access-to-index-and-item-after-drag-and-drop-event answer but after dropping, the UI crashed. Can someone give me a hint to overcome this problem. Thank you.