I have a class derived from QTableWidget, receiving drag'n'drop from external files and displays the name. The default action is Qt::CopyAction, and to ensure that the action to be performed is Qt::LinkAction, I must use drag->exec(Qt::LinkAction).
Sincereturns data as const QMimeData and drag->setMimeData(data) accept argument as QMimeData, there is a way to overcome this problem?Code:
event->mimeData()