Has the signal-slot behavior changed?

Detlev Offenbach detlev at die-offenbachs.de
Thu May 25 10:59:45 BST 2023


Hi,

I am observing a strange behavior with the eric-ide code.

Before upgrading to the latest PyQt6 version the following code was OK.

     @pyqtSlot(float)
     def setZoomFactor(self, zoomFactor):
         <some code here>

But with latest PyQt6/Qt6 it fails telling me, that the slot signature 
(float) is not compatible. I had to change it like this

     @pyqtSlot(float)
     @pyqtSlot("qreal")
     def setZoomFactor(self, zoomFactor):
         <some code here>

What did I miss in the past?

Regards,
Detlev

-- 
Detlev Offenbach
detlev at die-offenbachs.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xBD1F26A5DA8A6150.asc
Type: application/pgp-keys
Size: 660 bytes
Desc: OpenPGP public key
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20230525/f6f08bb5/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20230525/f6f08bb5/attachment.sig>


More information about the PyQt mailing list