<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p></p>
<div>Hi,</div>
<div><br>
</div>
<div>I am getting this error TypeError: </div>
<div><br>
</div>
<div>unable to convert a C++ 'QVariantMap' instance to a Python object</div>
<div><br>
</div>
<div>when calling toVariant() method on a QJSValue passed from the QML, but ONLY if passing a JavaScript <span style="font-size: 12pt;">object which has null as one of its attribute values. </span></div>
<div><br>
</div>
<div>The gist that demonstrates the issue:</div>
<div><a href="https://gist.github.com/poptosic/8af03a4c736c57658c3b66a082834035" class="OWAAutoLink" id="LPlnk907042" previewremoved="true">https://gist.github.com/poptosic/8af03a4c736c57658c3b66a082834035</a><br>
<br>
</div>
<div>This works fine in PyQt 5.7.</div>
<div><br>
</div>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p>Thanks</p>
<p>Milorad</p>
<p></p>
</div>
</div>
</div>
</body>
</html>