[PyQt] Slot connections fail with newest snapshot

Florian Bruhin me at the-compiler.org
Thu Jul 14 10:32:34 BST 2016


Hi,

I just tried PyQt5_gpl-5.7.dev1607121154 and sip-4.18.1.dev1607032332
(with a debug Python build FWIW), and with the attached code I get:

    QObject::connect: Cannot connect QCoreApplication::aboutToQuit() to (null)::lot()
    Traceback (most recent call last):
      File "foo.py", line 13, in <module>
        app.aboutToQuit.connect(obj.slot)
    TypeError: connect() failed between aboutToQuit() and lot()

It looks like there's a off-by-one error somewhere, as the method is
called "slot", not "lot"?

I noticed it doesn't happen without @pyqtSlot, and it also doesn't
happen with a function instead of a method.

Florian

-- 
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slot.py
Type: text/x-python
Size: 190 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160714/01415ee1/attachment-0001.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160714/01415ee1/attachment-0001.sig>


More information about the PyQt mailing list