Hello,
In my custom QGraphicsScene class, I display the following two values :
Qt Code:
{ qDebug()<<views()[0]->mapToScene(event->screenPos()); qDebug()<<event->scenePos(); // not equal to the previous value }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
Bookmarks