[RESOLVED] --was: Re: decorated slot has wrong signature for QtWidgets.QTableView.clicked (QModelIndex)

Axel Rau Axel.Rau at Chaos1.DE
Thu Jul 15 18:35:24 BST 2021



> Am 15.07.2021 um 18:16 schrieb Axel Rau <Axel.Rau at chaos1.de>:
> 
> 
> @QtCore.pyqtSlot(QtCore.QModelIndex)
> def tableRowSelected_slot(self, index: QtCore.QModelIndex):
> 	pass

Removing the type hint resolves the issue:

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

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/3941e0e9/attachment.sig>


More information about the PyQt mailing list