PyQt6: QSettings: missing NativeFormat

Gottfried Müller gottfried.mueller at gmx.de
Tue Mar 15 09:45:46 GMT 2022


Thank you Phil,

Gottfried

Am 14.03.22 um 10:01 schrieb Phil Thompson:
> On 14/03/2022 08:37, Gottfried Müller wrote:
>> Hello,
>>
>> I've got the following error message:
>>
>> from PyQt6.QtCore import QSettings
>> s = QSettings("/tmp/x.conf", QSettings.NativeFormat)
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in <module>
>> AttributeError: type object 'QSettings' has no attribute 'NativeFormat'
>>
>> Gottfried
>
> QSettings.Format.NativeFormat
>
> Phil



More information about the PyQt mailing list