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