Quote Originally Posted by ebsaith View Post
This is what I have
Qt Code:
  1. void MainWindow::slPopUpMenu()
  2. {
  3. QMenu *newMenu = new QMenu(this);
  4. newMenu->addAction(new QAction("Do that", this));
  5. }
To copy to clipboard, switch view to plain text mode 
how do get to the slot of the created action
after it is triggered

Im not seeing it!
As I said, connect to the action's triggered() signal

Qt Code:
  1. QAction *action = new QAction("Do that", this));
  2. connect(action, SIGNAL(triggered()), this, SlOT(doThatSlot()));
  3. newMenu->addAction(action);
To copy to clipboard, switch view to plain text mode 

Cheers,
_