Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide2.QtCore »

Classe « QDir »

Informations générales

Héritage

builtins.object
    Object
        QDir

Définition

class QDir(Object):

Description [extrait de QDir.__doc__]

QDir(self, arg__1: PySide2.QtCore.QDir)
QDir(self, path: str, nameFilter: str, sort: PySide2.QtCore.QDir.SortFlags = Instance(QDir.SortFlags(QDir.Name | QDir.IgnoreCase)), filter: PySide2.QtCore.QDir.Filters = PySide2.QtCore.QDir.Filter.AllEntries)
QDir(self, path: str = '')

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
AccessMaskPySide2.QtCore.QDir.Filter.AccessMask
AllDirsPySide2.QtCore.QDir.Filter.AllDirs
AllEntriesPySide2.QtCore.QDir.Filter.AllEntries
CaseSensitivePySide2.QtCore.QDir.Filter.CaseSensitive
DirsPySide2.QtCore.QDir.Filter.Dirs
DirsFirstPySide2.QtCore.QDir.SortFlag.DirsFirst
DirsLastPySide2.QtCore.QDir.SortFlag.DirsLast
DrivesPySide2.QtCore.QDir.Filter.Drives
ExecutablePySide2.QtCore.QDir.Filter.Executable
FilesPySide2.QtCore.QDir.Filter.Files
HiddenPySide2.QtCore.QDir.Filter.Hidden
IgnoreCasePySide2.QtCore.QDir.SortFlag.IgnoreCase
LocaleAwarePySide2.QtCore.QDir.SortFlag.LocaleAware
ModifiedPySide2.QtCore.QDir.Filter.Modified
NamePySide2.QtCore.QDir.SortFlag.Name
NoDotPySide2.QtCore.QDir.Filter.NoDot
NoDotAndDotDotPySide2.QtCore.QDir.Filter.NoDotAndDotDot
NoDotDotPySide2.QtCore.QDir.Filter.NoDotDot
NoFilterPySide2.QtCore.QDir.Filter.NoFilter
NoSortPySide2.QtCore.QDir.SortFlag.NoSort
NoSymLinksPySide2.QtCore.QDir.Filter.NoSymLinks
PermissionMaskPySide2.QtCore.QDir.Filter.PermissionMask
ReadablePySide2.QtCore.QDir.Filter.Readable
ReversedPySide2.QtCore.QDir.SortFlag.Reversed
SizePySide2.QtCore.QDir.SortFlag.Size
SortByMaskPySide2.QtCore.QDir.SortFlag.SortByMask
SystemPySide2.QtCore.QDir.Filter.System
TimePySide2.QtCore.QDir.SortFlag.Time
TypePySide2.QtCore.QDir.SortFlag.Type
TypeMaskPySide2.QtCore.QDir.Filter.TypeMask
UnsortedPySide2.QtCore.QDir.SortFlag.Unsorted
WritablePySide2.QtCore.QDir.Filter.Writable

Liste des opérateurs

Signature de l'opérateur Description
__eq__(self, value) Return self==value. [extrait de __eq__.__doc__]
__ge__(self, value) Return self>=value. [extrait de __ge__.__doc__]
__gt__(self, value) Return self>value. [extrait de __gt__.__doc__]
__le__(self, value) Return self<=value. [extrait de __le__.__doc__]
__lt__(self, value) Return self<value. [extrait de __lt__.__doc__]
__ne__(self, value) Return self!=value. [extrait de __ne__.__doc__]

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__copy__(self) __copy__(self) [extrait de __copy__.__doc__]
__reduce__(self) -> object __reduce__(self) -> object [extrait de __reduce__.__doc__]
__repr__(self) Return repr(self). [extrait de __repr__.__doc__]
absoluteFilePath(self, fileName: str) -> str absoluteFilePath(self, fileName: str) -> str [extrait de absoluteFilePath.__doc__]
absolutePath(self) -> str absolutePath(self) -> str [extrait de absolutePath.__doc__]
addResourceSearchPath(path: str) addResourceSearchPath(path: str) [extrait de addResourceSearchPath.__doc__]
addSearchPath(prefix: str, path: str) addSearchPath(prefix: str, path: str) [extrait de addSearchPath.__doc__]
canonicalPath(self) -> str canonicalPath(self) -> str [extrait de canonicalPath.__doc__]
cd(self, dirName: str) -> bool cd(self, dirName: str) -> bool [extrait de cd.__doc__]
cdUp(self) -> bool cdUp(self) -> bool [extrait de cdUp.__doc__]
cleanPath(path: str) -> str cleanPath(path: str) -> str [extrait de cleanPath.__doc__]
count(self) -> int count(self) -> int [extrait de count.__doc__]
current() -> PySide2.QtCore.QDir current() -> PySide2.QtCore.QDir [extrait de current.__doc__]
currentPath() -> str currentPath() -> str [extrait de currentPath.__doc__]
dirName(self) -> str dirName(self) -> str [extrait de dirName.__doc__]
drives() -> typing.List[PySide2.QtCore.QFileInfo] drives() -> typing.List[PySide2.QtCore.QFileInfo] [extrait de drives.__doc__]
entryInfoList entryInfoList(self, filters: PySide2.QtCore.QDir.Filters = PySide2.QtCore.QDir.Filter.NoFilter, sort: PySide2.QtCore.QDir.SortFlags = PySide2.QtCore.QDir.SortFlag.NoSort) -> typing.List[PySide2.QtCore.QFileInfo] [extrait de entryInfoList.__doc__]
entryList entryList(self, filters: PySide2.QtCore.QDir.Filters = PySide2.QtCore.QDir.Filter.NoFilter, sort: PySide2.QtCore.QDir.SortFlags = PySide2.QtCore.QDir.SortFlag.NoSort) -> typing.List[str] [extrait de entryList.__doc__]
exists exists(self) -> bool [extrait de exists.__doc__]
filePath(self, fileName: str) -> str filePath(self, fileName: str) -> str [extrait de filePath.__doc__]
Filter
filter(self) -> PySide2.QtCore.QDir.Filters filter(self) -> PySide2.QtCore.QDir.Filters [extrait de filter.__doc__]
Filters
fromNativeSeparators(pathName: str) -> str fromNativeSeparators(pathName: str) -> str [extrait de fromNativeSeparators.__doc__]
home() -> PySide2.QtCore.QDir home() -> PySide2.QtCore.QDir [extrait de home.__doc__]
homePath() -> str homePath() -> str [extrait de homePath.__doc__]
isAbsolute(self) -> bool isAbsolute(self) -> bool [extrait de isAbsolute.__doc__]
isAbsolutePath(path: str) -> bool isAbsolutePath(path: str) -> bool [extrait de isAbsolutePath.__doc__]
isEmpty(self, filters: PySide2.QtCore.QDir.Filters = Instance(QDir.Filters(QDir.AllEntries | QDir.NoDotAndDotDot))) -> bool isEmpty(self, filters: PySide2.QtCore.QDir.Filters = Instance(QDir.Filters(QDir.AllEntries | QDir.NoDotAndDotDot))) -> bool [extrait de isEmpty.__doc__]
isReadable(self) -> bool isReadable(self) -> bool [extrait de isReadable.__doc__]
isRelative(self) -> bool isRelative(self) -> bool [extrait de isRelative.__doc__]
isRelativePath(path: str) -> bool isRelativePath(path: str) -> bool [extrait de isRelativePath.__doc__]
isRoot(self) -> bool isRoot(self) -> bool [extrait de isRoot.__doc__]
listSeparator() -> str listSeparator() -> str [extrait de listSeparator.__doc__]
makeAbsolute(self) -> bool makeAbsolute(self) -> bool [extrait de makeAbsolute.__doc__]
match match(filter: str, fileName: str) -> bool [extrait de match.__doc__]
mkdir(self, dirName: str) -> bool mkdir(self, dirName: str) -> bool [extrait de mkdir.__doc__]
mkpath(self, dirPath: str) -> bool mkpath(self, dirPath: str) -> bool [extrait de mkpath.__doc__]
nameFilters(self) -> typing.List[str] nameFilters(self) -> typing.List[str] [extrait de nameFilters.__doc__]
nameFiltersFromString(nameFilter: str) -> typing.List[str] nameFiltersFromString(nameFilter: str) -> typing.List[str] [extrait de nameFiltersFromString.__doc__]
path(self) -> str path(self) -> str [extrait de path.__doc__]
refresh(self) refresh(self) [extrait de refresh.__doc__]
relativeFilePath(self, fileName: str) -> str relativeFilePath(self, fileName: str) -> str [extrait de relativeFilePath.__doc__]
remove(self, fileName: str) -> bool remove(self, fileName: str) -> bool [extrait de remove.__doc__]
removeRecursively(self) -> bool removeRecursively(self) -> bool [extrait de removeRecursively.__doc__]
rename(self, oldName: str, newName: str) -> bool rename(self, oldName: str, newName: str) -> bool [extrait de rename.__doc__]
rmdir(self, dirName: str) -> bool rmdir(self, dirName: str) -> bool [extrait de rmdir.__doc__]
rmpath(self, dirPath: str) -> bool rmpath(self, dirPath: str) -> bool [extrait de rmpath.__doc__]
root() -> PySide2.QtCore.QDir root() -> PySide2.QtCore.QDir [extrait de root.__doc__]
rootPath() -> str rootPath() -> str [extrait de rootPath.__doc__]
searchPaths(prefix: str) -> typing.List[str] searchPaths(prefix: str) -> typing.List[str] [extrait de searchPaths.__doc__]
separator() -> str separator() -> str [extrait de separator.__doc__]
setCurrent(path: str) -> bool setCurrent(path: str) -> bool [extrait de setCurrent.__doc__]
setFilter(self, filter: PySide2.QtCore.QDir.Filters) setFilter(self, filter: PySide2.QtCore.QDir.Filters) [extrait de setFilter.__doc__]
setNameFilters(self, nameFilters: typing.Sequence[str]) setNameFilters(self, nameFilters: typing.Sequence[str]) [extrait de setNameFilters.__doc__]
setPath(self, path: str) setPath(self, path: str) [extrait de setPath.__doc__]
setSearchPaths(prefix: str, searchPaths: typing.Sequence[str]) setSearchPaths(prefix: str, searchPaths: typing.Sequence[str]) [extrait de setSearchPaths.__doc__]
setSorting(self, sort: PySide2.QtCore.QDir.SortFlags) setSorting(self, sort: PySide2.QtCore.QDir.SortFlags) [extrait de setSorting.__doc__]
SortFlag
SortFlags
sorting(self) -> PySide2.QtCore.QDir.SortFlags sorting(self) -> PySide2.QtCore.QDir.SortFlags [extrait de sorting.__doc__]
swap(self, other: PySide2.QtCore.QDir) swap(self, other: PySide2.QtCore.QDir) [extrait de swap.__doc__]
temp() -> PySide2.QtCore.QDir temp() -> PySide2.QtCore.QDir [extrait de temp.__doc__]
tempPath() -> str tempPath() -> str [extrait de tempPath.__doc__]
toNativeSeparators(pathName: str) -> str toNativeSeparators(pathName: str) -> str [extrait de toNativeSeparators.__doc__]

Méthodes héritées de la classe Object

__init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __sizeof__, __str__