PyQt6 AttributeError: type object 'QStandardPaths' has no attribute 'AppConfigLocation'

Phil Thompson phil at riverbankcomputing.com
Sun Feb 6 15:59:08 GMT 2022


On 06/02/2022 02:09, Zhao Lee wrote:
> The same code works well in PyQt5 but not PyQt6
> 
> 
>>>> from PyQt6.QtCore import *
> 
>>>> QStandardPaths.AppConfigLocation
> 
> Traceback (most recent call last):
> 
>   File "<pyshell#6>", line 1, in <module>
> 
>     QStandardPaths.AppConfigLocation
> 
> AttributeError: type object 'QStandardPaths' has no attribute
> 'AppConfigLocation'

QStandardPaths.StandardLocation.AppConfigLocation for both PyQt5 and 
PyQt6.

Phil


More information about the PyQt mailing list