hi.

are u deriving the class DiagramView from Q3CanvasView...

For me something like this works pretty fine...

Qt Code:
  1. void CanvasMouse::contentsMousePressEvent(QMouseEvent* e)
  2. {
  3. if(e->button() == Qt::LeftButton)
  4. {
  5. QPoint pPress = inverseWorldMatrix().map(e->pos());
  6. }
  7. }
To copy to clipboard, switch view to plain text mode 

though it seems a crude method but try something like this that try to call the mouse events in the class where u have created the canvas... where u have set its size and its view... it might help...

Kapil