As for me the output of the code below is as expected when placed into
QGraphicsItem::mousePressEvent():

    qDebug() << "scene:" << event->scenePos();
    qDebug() << "map to scene:" << mapToScene(event->pos());
    qDebug() << "local:" << event->pos();
    qDebug() << "map to local:" << mapFromScene(event->scenePos());

Probably, you have messed up with screenPos() and scenePos() methods
of QGraphicsSceneMouseEvent class? Please, double check your test code.

Regards,
Dmitrii.
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to