Qt Code:
  1. e->type() == QEvent::KeyPress
To copy to clipboard, switch view to plain text mode 
instead u use
Qt Code:
  1. e->type() == QEvent::GraphicsSceneMouseDoubleClick
To copy to clipboard, switch view to plain text mode 

and inside the condition u can do any thing .. display a alert message dialog or emit a signal or return a statement ..etc ..