QStandardPaths.AppLocalDataLocation missing in PyQt6?

Marko Luther marko.luther at gmx.net
Thu Aug 26 18:27:36 BST 2021


>>> from PyQt6.QtCore import QStandardPaths
>>> QStandardPaths.StandardLocation.AppLocalDataLocation
<StandardLocation.AppLocalDataLocation: 9>

Got it now. 

Sorry for the noise and thanks for the quick reply,
Marko

> On 26. Aug 2021, at 19:21, Phil Thompson <phil at riverbankcomputing.com> wrote:
> 
> On 26/08/2021 18:16, Marko Luther wrote:
>> Dear Phil,
>> is AppLocalDataLocation no longer exported from QStandardPaths on
>> PyQt6? I am using PyQt 6.1.1 from pip.
>>>>> from PyQt6.QtCore import QStandardPaths
>>>>> QStandardPaths.AppLocalDataLocation
>> Traceback (most recent call last):
>>  File "<stdin>", line 1, in <module>
>> AttributeError: type object 'QStandardPaths' has no attribute
>> 'AppLocalDataLocation'
> 
> Enum members must be fully qualified in PyQt6.
> 
> Phil



More information about the PyQt mailing list