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.
QMenu *contextMenu = new QMenu;
QModelIndex cell = ui->tableWidget->indexAt(pos);
if(cell.isValid())
{
contextMenu->addAction("Burn Case", this, SLOT(burnCase()));
contextMenu->addAction("Export Case", this, SLOT(exportCase(cell.row())));
contextMenu->addAction("Delete Case", this, SLOT(deleteCase(cell.row())));
contextMenu->exec(ui->tableWidget->mapToGlobal(pos));
}
UPDATE:
The slot without a parameter being passed appears to be working, but not the ones with parameters