Image format changed ?

vincent.vandevyvre at oqapy.eu vincent.vandevyvre at oqapy.eu
Wed Aug 24 10:10:38 BST 2022


Hi,

In PyQt5 we can create an image with:
 img = QImage(size, QImage.Format_ARGB32_Premultiplied)
in PyQt6 I've this error:
AttributeError: type object 'QImage' has no attribute 'Format_ARGB32_Premultiplied'

Is this a syntaxe change ?

Vincent


More information about the PyQt mailing list