Skip to content

All fixed in Qt6 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dfaure-kdab opened this issue Aug 12, 2024 · 0 comments
Open

All fixed in Qt6 #2

dfaure-kdab opened this issue Aug 12, 2024 · 0 comments

Comments

@dfaure-kdab
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant