How do I connect a dropEvent in a QGraphicsView widget to a slot? Here's a snippet of what I've got so far. This compiles just fine, but it doesn't recognize any drop event.

Qt Code:
  1. QGraphicsScene *scene = new QGraphicsScene(this);
  2. QGraphicsView *view = new QGraphicsView(scene);
  3.  
  4. view->setAcceptDrops(true);
  5. connect(view, SIGNAL(dropEvent()), this, SLOT(myDropEvent()));
  6.  
  7. void MainWindow::myDropEvent()
  8. {
  9. QDebug("here");
  10. }
To copy to clipboard, switch view to plain text mode 

What I'm trying to do is drag and drop items from outside my application into an empty QGraphicsView (for instance, an icon from the Desktop). Can this be done?

Thanks!