Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to restrict QTableWidget drags to Qt::CopyAction
patrickkidd last edited by
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?
From the top of my head you should look into the defaultDropAction.
Hope it helps
[edit: Fixed property name SGaist]