[PyQt] TypeError in QImage.loadFromData() in PyQt5.5.1

Milorad Pop-Tosic pop at hiri.com
Thu Nov 5 16:50:50 GMT 2015

Hi all,

Our tests detected a possible regression in QImage.loadFromData() after we switched from PyQt 5.4.1 to 5.5.1.
This snippet demonstrates the problem:

from PyQt5.QtGui import QImage
image = QImage()

On PyQt5.5.1 this fails with:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: arguments did not match any overloaded call:
  QImage.loadFromData(str, str format=None): argument 1 has unexpected type 'str'
  QImage.loadFromData(QByteArray, str format=None): argument 1 has unexpected type 'str'

On PyQt5.4.1 it works fine.

Python 3.4.2 on Windows in both cases.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20151105/31aa3313/attachment-0001.html>

More information about the PyQt mailing list