decorated slot has wrong signature for QtWidgets.QTableView.clicked (QModelIndex)

Axel Rau Axel.Rau at Chaos1.DE
Thu Jul 15 17:16:17 BST 2021


I tried:

@QtCore.pyqtSlot(QtCore.QModelIndex)
def tableRowSelected_slot(self, index: QtCore.QModelIndex):
	pass

or:

@QtCore.pyqtSlot(int, int)
def tableRowSelected_slot(self, row, column):
	pass

But always getting:

in connect_signals
    self.tabView.clicked.connect(self.tableRowSelected_slot)
TypeError: decorated slot has no signature compatible with clicked(QModelIndex)

What is wrong here?
Axel
---
PGP-Key: CDE74120  ☀  computing @ chaos claudius

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210715/228a8a36/attachment.sig>


More information about the PyQt mailing list