Has the signal-slot behavior changed?

Phil Thompson phil at riverbankcomputing.com
Thu May 25 11:19:53 BST 2023


On 25/05/2023 10:59, Detlev Offenbach wrote:
> 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?

What signal are you connecting it to?

Phil


More information about the PyQt mailing list