SLOT(exportCase(cell.row())))
is not valid connect
argument. The string passed in SLOT()
macro must contain the slot's name and its argument types. You can't pass argument values directly. So, if your slot accepts int
argument, the statement would be SLOT(exportCase(int))
.
More than that, you can't connect a signal to a slot with mismatching arguments. QMenu::addAction
connects your slot to the QAction::triggered(bool)
signal. So you can only use a slot with no arguments or a slot with a single bool
argument.
Any run-time connect
issues can be detected using return value of connect()
. You'd better check it if you're experiencing some issues. Also, Qt Creator's autocomplete could help you to use SIGNAL()
and SLOT()
macros.
See also connect documentation.