<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;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><span id="ms-rterangepaste-start"></span></p>
<div>Hi all,</div>
<div><br>
</div>
<div>Our tests detected a possible regression in QImage.loadFromData() after we switched from PyQt 5.4.1 to 5.5.1.</div>
<div>This snippet demonstrates the problem:</div>
<div><br>
</div>
<div>from PyQt5.QtGui import QImage</div>
<div>image = QImage()</div>
<div>image.loadFromData('abc')</div>
<div><br>
</div>
<div>On PyQt5.5.1 this fails with:</div>
<div><br>
</div>
<div>Traceback (most recent call last):</div>
<div> File "<stdin>", line 1, in <module></div>
<div>TypeError: arguments did not match any overloaded call:</div>
<div> QImage.loadFromData(str, str format=None): argument 1 has unexpected type 'str'</div>
<div> QImage.loadFromData(QByteArray, str format=None): argument 1 has unexpected type 'str'</div>
<div><br>
</div>
<div>On PyQt5.4.1 it works fine.</div>
<div><br>
</div>
<div>Environment:</div>
<div>Python 3.4.2 on Windows in both cases.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Milorad</div>
<span id="ms-rterangepaste-end"></span><br>
<p></p>
</div>
</body>
</html>