For example, array considered two actions - "Open" and "New":
Qt Code:
  1. void MyClass::pressMenu()
  2. {
  3. QAction* your_action = qobject_cast<QAction*> (sender());
  4. QString name_menu = your_action -> text();
  5. }
To copy to clipboard, switch view to plain text mode 

If you click in "Open", mean of name_menu is "Open", other - "New"!