The component being connected is a combobox within a table. The connection works, but I want to be able to pass arguments to the function. Just as a simplified example, I made those arguments the cell row and column, as well as a password.
def setTableCellToCombo(qtbl, row, column, password): #qtbl is a QTableWidget
qtbl.blockSignals(True)
comp = QtWidgets.QComboBox()
comp.insertItems(0, ['Example'])
comp.setCurrentIndex(0)
qtbl.setCellWidget(row, column, comp)
comp.currentIndexChanged.connect(comboListener(row, column, password))
qtbl.blockSignals(False)
def comboListener(row, column, password):
print(password)
The error I get is: TypeError: Qt.ConnectionType expected, not 'function'
Is there a way to pass arguments to the connected 'comboListener' function? And if so, how?