Try overriding the dragMoveEvent() also.
I got it working that way..
Qt Code:
{ if (event->mimeData()->hasFormat("application/x-dnditemdata")) event->acceptProposedAction(); }To copy to clipboard, switch view to plain text mode
Try overriding the dragMoveEvent() also.
I got it working that way..
Qt Code:
{ if (event->mimeData()->hasFormat("application/x-dnditemdata")) event->acceptProposedAction(); }To copy to clipboard, switch view to plain text mode
Thanks a lot,
it's working if i implement dragMoveEvent.
I think this is a bug in QT4.1.1 as i implemented drag and drop in other widgets (eg. QListView, QWidget, etc) all of them work without implementing dragMoveEvent.
Is it necessary that we implement dragEvent, dragMoveEvent, dragEnterEvent, and dropEvent for all the widgets for drag and drop
regards,
sree
Bookmarks