Hi !
I use :
Qt Code:
  1. menu.exec(QCursor::pos())
To copy to clipboard, switch view to plain text mode