Hi!
I have a QGraphicsScene set in a QGraphicsView
In the scene I put a pixmap which is movable.
If the user drags and drops the pixmap inside the QGraphicsScene, on the drop action, I want to do some things in my program.

Qt Code:
  1. _scene = std::make_shared<QGraphicsScene>();
  2. ui->graphicsView->setScene(_scene.get());
  3. QGraphicsPixmapItem* pixmap = _scene->addPixmap(QPixmap::fromImage(some_QImage);
  4. pixmap->setFlag(QGraphicsItem::ItemIsMovable);
To copy to clipboard, switch view to plain text mode 

Does anyone know how to do such a thing? Is it possible with reimplementation of dragEnterEvent, dragMoveEvent, dropEvent? I tried it in the GraphicsScene and the GraphicsView but it didn't reach my reimplemented event methods.

Thank you
Gal