Qt 6.12 LTS is out! See what's new in the release
blog
How to restrict QTableWidget drags to Qt::CopyAction
-
The title says it all. I reimplemented ::mimeData() to set urls for my file items, but the drag action is always set to MoveAction. I need to it always be copy action in all cases. Is there a way to do this?
Thanks!
-
Hi,
From the top of my head you should look into the defaultDropAction.
Hope it helps
[edit: Fixed property name SGaist]