[PyQt] Possible regression in PyQt5.8: unable to convert a C++ 'QVariantMap' instance to a Python object
Milorad Pop-Tosic
pop at hiri.com
Fri Mar 3 11:08:10 GMT 2017
Hi,
I am getting this error TypeError:
unable to convert a C++ 'QVariantMap' instance to a Python object
when calling toVariant() method on a QJSValue passed from the QML, but ONLY if passing a JavaScript object which has null as one of its attribute values.
The gist that demonstrates the issue:
https://gist.github.com/poptosic/8af03a4c736c57658c3b66a082834035
This works fine in PyQt 5.7.
Thanks
Milorad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170303/072e1def/attachment.html>
More information about the PyQt
mailing list