[PyQt] Drag-and-drop editing in QListWidget or QListView

Nathan Weston nathan at genarts.com
Thu Jun 2 14:05:41 BST 2011


I have a QListWidget with dragDropMode set to InternalMove, and I can 
move rows around by dragging as expected. But I also want to know when 
items are moved so I can update other data in my application, and I 
can't find any way to do this.

Would it help if I switched to QListView and implemented a model? I 
looked into this a bit but couldn't figure out how to do what I want.

Thanks,
- Nathan


More information about the PyQt mailing list