[PyQt] QGraphicsObject - Possible regression in PyQt5

Phil Thompson phil at riverbankcomputing.com
Sat Feb 6 10:29:21 GMT 2016


On 4 Feb 2016, at 10:21 am, Ales Erjavec <ales.erjavec324 at gmail.com> wrote:
> 
> Hello,
> 
> There seems to be a regression in PyQt5 when using QGraphicsObject
> in a pyqtSignal definition.
> 
> When a signal is defined in a QObject as `signal = pyqtSignal(QGraphicsObject)`
> the resulting meta object method will have a signature of
> 'signal(QGraphicsItem*)',
> but in PyQt4 this would have been 'signal(QGraphicsObject*)'.
> 
> Worse when the signal is actually emitted with an instance of a QGraphicsObject
> the receivers all get a None instead of the intended instance.
> This worked in PyQt4.

Should be fixed in tonight's snapshot.

Thanks,
Phil


More information about the PyQt mailing list