[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: Image format changed ?
From:       Vincent Vande Vyvre <vincent.vande.vyvre () telenet ! be>
Date:       2022-08-24 9:39:01
Message-ID: d7492515-5a46-f5f7-c8b3-ee128d39c52b () telenet ! be
[Download RAW message or body]

On 24/08/22 11:19, Florian Bruhin wrote:
> Hey,
>
> On Wed, Aug 24, 2022 at 10:10:39AM +0100, vincent.vandevyvre@oqapy.eu wrote:
>> 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 ?
> With PyQt6, Qt enums are only accessible using there fully qualified
> name, including the enum type:
>
>      QImage.Format.Format_ARGB32_Premultiplied
>
> Florian
>
OK, thanks Florian.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic