Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
To Drag and Drop setDropAction(Qt::moveAction) in dragMoveEvent and dragEnterEvent is not necessary.
whitesong last edited by
I've tested a project for Drag and Drop but when i dont write
project still work, i saw many projects with this line and i dont know why a professional programmer write this code?(you can see many examples that wrote this line in their code)