In the slot you can get the text

Like this:

Qt Code:
  1. void YourClass::actionTriggered(QAction *a)
  2. {
  3. QString str = a->text()
  4. }
To copy to clipboard, switch view to plain text mode