PyQt5-reorderable-list-model
PyQt5-reorderable-list-model copied to clipboard
All fixed in Qt6
trafficstars
Good news: none of this is necessary in Qt6, where QListView::dropEvent() calls moveRows() on the model, when moving within the same view. So it all works out of the box (as long as you implement moveRows() in the model, of course), including updating the selection.
I just implemented the same for QTableView. I plan on tackling QTreeView next.