Recently I was working on a Qt app requiring Drag and Drop support. The documentation says that to use this on a QWidget, we need to set
I tried that but the cursor still showed the “not -allowed” symbol. This was bit confusing making me think that there's some internal problem. But actually the implementation of the following event handlers is mandatory to make it work-
void Dialog::dragEnterEvent(QDragEnterEvent *event)
void ChatDialog::dragMoveEvent(QDragMoveEvent *event)
This is provided so that app can accept only certain types of files. Hope this helps someone.