[PyQt] No match to overloaded signal
Yuya Nishihara
yuya at tcha.org
Thu Apr 9 14:06:38 BST 2015
On Thu, 09 Apr 2015 14:45:42 +0200, Jeremy Sanders wrote:
> Is this an intentional difference between PyQt4 and 5? The PyQt4 version
> works, but PyQt5 gives the error:
>
> Traceback (most recent call last):
> File "test.py", line 16, in <module>
> p.clicked[()].connect(func)
> KeyError: 'there is no matching overloaded signal'
>
> Here is the program:
>
> import sys
>
> from PyQt4.QtCore import *
> from PyQt4.QtGui import *
> #from PyQt5.QtCore import *
> #from PyQt5.QtWidgets import *
>
> app = QApplication(sys.argv)
>
> def func():
> print('clicked')
>
> p = QPushButton('Button')
> p.clicked[()].connect(func)
The doc says it was removed at PyQt v5.3. See
http://pyqt.sourceforge.net/Docs/PyQt5/incompatibilities.html
Regards,
More information about the PyQt
mailing list