[PyQt] Slot lookup fails when inheritance depth is larger than one

Phil Thompson phil at riverbankcomputing.com
Fri Jan 30 14:54:45 GMT 2015


On 28/01/2015 3:56 pm, Matt Newell wrote:
> I first discovered this with comparison not working as
> expected with a wrapped type.  The __eq__ slot lookup
> was failing because sip only looks at the
> sipClassTypeDef and the direct parent.  Neither contain
> slots because they are defined in the grandparent.
> 
> Attached is a patch that implements a depth first
> recursive algorithm for slot lookup, which fixes the
> problem for me.

Thanks,
Phil


More information about the PyQt mailing list