Quote Originally Posted by Pradeep V View Post
Qt Code:
  1. void MainWindow::dragEnterEvent(QDragEnterEvent *Event)
  2. {
  3. QString my_text;
  4. QDrag *drag = new QDrag(this);
  5. QMimeData *mimeData = new QMimeData;
  6. my_text = Event->mimeData()->text();
  7. mimeData->setText(my_text);
  8. drag->setMimeData(mimeData);
  9. drag->exec();
  10. }
To copy to clipboard, switch view to plain text mode 
Why do you want to start a drag when a drag enters the widget?
Wouldn't it be better to handle the incoming drag?

Quote Originally Posted by Pradeep V View Post
But in the dropEvent function, when i capture the mimedata, it is of "application/x-qabstractitemmodeldatalist" format.
That's what a QAbstractItemView based view class will use.

Cheers,
_