hi, i have a QGraphicsScene in a QGraphicsView:

Qt Code:
  1. view = new GraphicsView( this );
  2. scene = new GraphicsScene( this );
  3. scene->setSceneRect( 0.0, 0.0, 512.0, 512.0 );
  4. scene->add....(...
  5. ....
  6. view->setScene( scene );
  7. view->show();
To copy to clipboard, switch view to plain text mode 

all objects added to the scene are displayed correctely, but
Qt Code:
  1. void GraphicsScene::mouseMoveEvent( QGraphicsSceneMouseEvent *event ) {
  2. cout << " moved to: X->" << event->pos().toPoint().x();
  3. cout << " moved to: Y->" << event->pos().toPoint().y() << endl;
  4. event->accept();
  5. }
To copy to clipboard, switch view to plain text mode 

always results in X->0 and Y->0
why is that so?