QImage.fill() Change in Behavior Between PyQt6 6.0.3 and 6.1.0

Ognyan Moore ognyan.moore at gmail.com
Sat Jun 12 16:47:57 BST 2021


Hello from pyqtgraph; we noticed a recent change in behavior with
QImage.fill() between recent versions of PyQt6.

Here is a MWE:

Behavior on PyQt6 < 6.1

>>> qimg = QtGui.QImage(1, 1, QtGui.QImage.Format.Format_ARGB32)
>>> qimg.fill(0)
>>> hex(qimg.pixel(0, 0))
'0x0'

Behavior on PyQt6 6.1

>>> qimg = QtGui.QImage(1, 1, QtGui.QImage.Format.Format_ARGB32)
>>> qimg.fill(0)
>>> hex(qimg.pixel(0, 0))
'0xff000000'

This issue also has some unfortunate side effects with us having to have
endian specific code-paths
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210612/e7c81967/attachment.htm>


More information about the PyQt mailing list