I currently having the issue that my ListView causes really strange behavior:
- I apply a Model
- I set dragDropMode to InternalMove
I can drag and drop, but when I drop the item on the other instead of above/below/between, the item just disappears. Is this a bug? I found some info regarding this, but nothing really helped. A work around for me is currently to implement a custom ListView and determine if the drop was ON an item, in that case don’t route the event to the parent class… t:
model = CustomListModel(["Item 1", "Item 2", "Item 3", "Item 4", "Item 5"])
self.list_view.setModel(model)
self.list_view.setDragDropMode(QListView.DragDropMode.InternalMove)
I tried downgrading to earlier pyqt5 versions as well as upgrading to pyqt6. No change
Any help is highly appreciated