Hello!

I have some problems with coordinates. I have a QGraphicsScene in a QGraphicsView and on the scene there is a QGraphicsItem. I retrieve the center coordinates of the bounding box
Qt Code:
  1. QPointF coords= this->mapToScene(this->boundingRect().center());
To copy to clipboard, switch view to plain text mode 
How can I match the coordinate system for the expression above to one of those for mouse click coordinates?:
Qt Code:
  1. void MyClass::mousePressEvent(QGraphicsSceneMouseEvent *event)
  2. {
  3. QPoint clickCoords = QCursor::pos();
  4. QPointF globalPos = event->screenPos();
  5. ...
To copy to clipboard, switch view to plain text mode 

I'm sorry, this coordinate thing has been discussed so many times, but I can't figure it out.

Andy