Hi,

I have a tree widget which allows items to be dragged. I have a derived tableview which accepts drops, I have reimplemented the dragEnterEvent and dropEvent in here, the dragEnterEvent gets called but the dropEvent doesn't. At the moment I am just accepting any types of drops.

Code in the tableview :

Qt Code:
  1. void DATableView::dropEvent(QDropEvent *e)
  2. {
  3. QString strText = e->mimeData()->text();
  4. e->acceptProposedAction();
  5. }
  6.  
  7. void DATableView::dragEnterEvent(QDragEnterEvent* e)
  8. {
  9. e->accept();
  10. }
To copy to clipboard, switch view to plain text mode 

Any idea what I'm missing?

Regards,
Steve