title: QTableWidget - QMenu Context Menu - AddAction slots not calling functions
body: <p>I'm trying to call a function via a context menu embedded inside of a QTablewidget. It does not call the function in the slot. Could I be missing something ? The context menus do appear but clicking does nothing.</p>
  
  <pre><code>    QMenu *contextMenu = new QMenu;
      QModelIndex cell = ui-&gt;tableWidget-&gt;indexAt(pos);
  
      if(cell.isValid())
  
      {
              contextMenu-&gt;addAction("Burn Case", this, SLOT(burnCase()));
  
              contextMenu-&gt;addAction("Export Case", this, SLOT(exportCase(cell.row())));
  
              contextMenu-&gt;addAction("Delete Case", this, SLOT(deleteCase(cell.row())));
  
              contextMenu-&gt;exec(ui-&gt;tableWidget-&gt;mapToGlobal(pos));
      }
  </code></pre>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>The slot without a parameter being passed appears to be working, but not the ones with parameters</p>