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

Phil Thompson phil at riverbankcomputing.com
Sun Jun 13 12:18:00 BST 2021


On 12/06/2021 16:47, Ognyan Moore wrote:
> 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

It will be fixed in v6.1.1.

Thanks,
Phil


More information about the PyQt mailing list