PyQt6: QSettings: missing NativeFormat

Phil Thompson phil at riverbankcomputing.com
Mon Mar 14 09:01:59 GMT 2022


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