try this
Qt Code:
  1. graphicsView->viewport()->setMouseTracking(true);
To copy to clipboard, switch view to plain text mode