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

List:       pykde
Subject:    Re: PyQt6  AttributeError: type object 'QStandardPaths' has no attribute 'AppConfigLocation'
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2022-02-06 15:59:08
Message-ID: 9772b68fa830a1cb39f9390319fff7d7 () riverbankcomputing ! com
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

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