Hello,

In my custom QGraphicsScene class, I display the following two values :

Qt Code:
  1. void MainScene::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
  2. {
  3. qDebug()<<views()[0]->mapToScene(event->screenPos());
  4. qDebug()<<event->scenePos(); // not equal to the previous value
  5. QGraphicsScene::contextMenuEvent(event);
  6. }
To copy to clipboard, switch view to plain text mode 

I don't understand why the two values are different. How can I map event->screenPos() to scene coordinates correctly ?

Thank you