[PyQt] Problem with inherits() method

Phil Thompson phil at riverbankcomputing.com
Thu Apr 27 16:50:40 BST 2017


On 26 Apr 2017, at 9:47 pm, John Ehresman <jpe at wingware.com> wrote:
> 
> The inherits() method doesn't seem to be working in PyQt5 5.8.2 w/ Qt 5.8 for objects created from Python as shown be the following example at the interactive prompt:
> 
> >>> app = QtWidgets.QApplication([])
> >>> o = QtWidgets.QStackedWidget()
> >>> o.inherits('QObject')
> False
> >>> l = o.layout()
> >>> l.inherits('QObject')
> True
> 
> Both inherits() calls should return true.  I've tested with a from source build on mac and the pip installed wheel on 32 bit windows.

Should be fixed in tonight's snapshot. Patch below.

Thanks,
Phil

-------------- next part --------------
A non-text attachment was scrubbed...
Name: inherits.patch
Type: application/octet-stream
Size: 683 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170427/51f98ce0/attachment.obj>


More information about the PyQt mailing list