This bit is concerning:
self.QTableWidget
If your table is literally called "QTableWidget" there may be confusion later on. Specifically, the error you are getting makes it look like you are calling QTableWidget.currentItemChanged
.
Also, its worth reviewing the PyQT documentation on "new-style signals", specifically on dealing with overloads to understand how it all works. Fortunately however, QTableWidget.currentItemChanged
isn't overloaded so, the code you should be using should just be:
self.yourTable.currentItemChanged.connect(self.editCell)
Regarding your later edits, in this code:
currentItemChanged(QTableWidgetItem*,QTableWidgetItem*)
The QTableWidgetItem
s that are being parsed are arguments that are given to the signal. You can't change them, as they are definined in the method that defines the slot, and passed when the signal is fired. From the documentation linked above:
void currentItemChanged (QTableWidgetItem *,QTableWidgetItem *)
This signal is emitted whenever the current item changes. The previous item is the item that previously had the focus, current is the new current item.