Hi all

Hope someone can help me. I have managed to add a context menu to a listwidget with currentley only one menu item called "Get details"


Qt Code:
  1. QAction* menuItem = new QAction("Get details",0);
  2. pop_menu->addAction(menuItem);
To copy to clipboard, switch view to plain text mode 


What i wanted was something like the below:

Qt Code:
  1. If (pop_menu->menuItem->clicked())
  2. {
  3. Do this
  4. }
To copy to clipboard, switch view to plain text mode 

Is this possible?