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 « PySide6.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: Union[PySide6.QtCore.QDir, str]) -> None
QDir(self, path: Union[str, bytes, os.PathLike, NoneType]) -> None
QDir(self, path: Union[str, bytes, os.PathLike], nameFilter: str, sort: PySide6.QtCore.QDir.SortFlags = Instance(QDir.SortFlags(QDir.Name | QDir.IgnoreCase)), filter: PySide6.QtCore.QDir.Filters = PySide6.QtCore.QDir.Filter.AllEntries) -> None

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__]

Liste des attributs statiques

Nom de l'attribut Valeur
AccessMaskPySide6.QtCore.QDir.Filter.AccessMask
AllDirsPySide6.QtCore.QDir.Filter.AllDirs
AllEntriesPySide6.QtCore.QDir.Filter.AllEntries
CaseSensitivePySide6.QtCore.QDir.Filter.CaseSensitive
DirsPySide6.QtCore.QDir.Filter.Dirs
DirsFirstPySide6.QtCore.QDir.SortFlag.DirsFirst
DirsLastPySide6.QtCore.QDir.SortFlag.DirsLast
DrivesPySide6.QtCore.QDir.Filter.Drives
ExecutablePySide6.QtCore.QDir.Filter.Executable
FilesPySide6.QtCore.QDir.Filter.Files
HiddenPySide6.QtCore.QDir.Filter.Hidden
IgnoreCasePySide6.QtCore.QDir.SortFlag.IgnoreCase
LocaleAwarePySide6.QtCore.QDir.SortFlag.LocaleAware
ModifiedPySide6.QtCore.QDir.Filter.Modified
NamePySide6.QtCore.QDir.SortFlag.Name
NoDotPySide6.QtCore.QDir.Filter.NoDot
NoDotAndDotDotPySide6.QtCore.QDir.Filter.NoDotAndDotDot
NoDotDotPySide6.QtCore.QDir.Filter.NoDotDot
NoFilterPySide6.QtCore.QDir.Filter.NoFilter
NoSortPySide6.QtCore.QDir.SortFlag.NoSort
NoSymLinksPySide6.QtCore.QDir.Filter.NoSymLinks
PermissionMaskPySide6.QtCore.QDir.Filter.PermissionMask
ReadablePySide6.QtCore.QDir.Filter.Readable
ReversedPySide6.QtCore.QDir.SortFlag.Reversed
SizePySide6.QtCore.QDir.SortFlag.Size
SortByMaskPySide6.QtCore.QDir.SortFlag.SortByMask
SystemPySide6.QtCore.QDir.Filter.System
TimePySide6.QtCore.QDir.SortFlag.Time
TypePySide6.QtCore.QDir.SortFlag.Type
TypeMaskPySide6.QtCore.QDir.Filter.TypeMask
UnsortedPySide6.QtCore.QDir.SortFlag.Unsorted
WritablePySide6.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__() -> None __copy__() -> None [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__]
addSearchPath(prefix: str, path: Union[str, bytes, os.PathLike]) -> None addSearchPath(prefix: str, path: Union[str, bytes, os.PathLike]) -> None [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() -> PySide6.QtCore.QDir current() -> PySide6.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() -> List[PySide6.QtCore.QFileInfo] drives() -> List[PySide6.QtCore.QFileInfo] [extrait de drives.__doc__]
entryInfoList entryInfoList(self, filters: PySide6.QtCore.QDir.Filters = PySide6.QtCore.QDir.Filter.NoFilter, sort: PySide6.QtCore.QDir.SortFlags = PySide6.QtCore.QDir.SortFlag.NoSort) -> List[PySide6.QtCore.QFileInfo] [extrait de entryInfoList.__doc__]
entryList entryList(self, filters: PySide6.QtCore.QDir.Filters = PySide6.QtCore.QDir.Filter.NoFilter, sort: PySide6.QtCore.QDir.SortFlags = PySide6.QtCore.QDir.SortFlag.NoSort) -> 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) -> PySide6.QtCore.QDir.Filters filter(self) -> PySide6.QtCore.QDir.Filters [extrait de filter.__doc__]
Filters
fromNativeSeparators(pathName: str) -> str fromNativeSeparators(pathName: str) -> str [extrait de fromNativeSeparators.__doc__]
home() -> PySide6.QtCore.QDir home() -> PySide6.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: PySide6.QtCore.QDir.Filters = Instance(QDir.Filters(QDir.AllEntries | QDir.NoDotAndDotDot))) -> bool isEmpty(self, filters: PySide6.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) -> List[str] nameFilters(self) -> List[str] [extrait de nameFilters.__doc__]
nameFiltersFromString(nameFilter: str) -> List[str] nameFiltersFromString(nameFilter: str) -> List[str] [extrait de nameFiltersFromString.__doc__]
path(self) -> str path(self) -> str [extrait de path.__doc__]
refresh(self) -> None refresh(self) -> None [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() -> PySide6.QtCore.QDir root() -> PySide6.QtCore.QDir [extrait de root.__doc__]
rootPath() -> str rootPath() -> str [extrait de rootPath.__doc__]
searchPaths(prefix: str) -> List[str] searchPaths(prefix: str) -> 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: PySide6.QtCore.QDir.Filters) -> None setFilter(self, filter: PySide6.QtCore.QDir.Filters) -> None [extrait de setFilter.__doc__]
setNameFilters(self, nameFilters: Sequence[str]) -> None setNameFilters(self, nameFilters: Sequence[str]) -> None [extrait de setNameFilters.__doc__]
setPath(self, path: Union[str, bytes, os.PathLike]) -> None setPath(self, path: Union[str, bytes, os.PathLike]) -> None [extrait de setPath.__doc__]
setSearchPaths(prefix: str, searchPaths: Sequence[str]) -> None setSearchPaths(prefix: str, searchPaths: Sequence[str]) -> None [extrait de setSearchPaths.__doc__]
setSorting(self, sort: PySide6.QtCore.QDir.SortFlags) -> None setSorting(self, sort: PySide6.QtCore.QDir.SortFlags) -> None [extrait de setSorting.__doc__]
SortFlag
SortFlags
sorting(self) -> PySide6.QtCore.QDir.SortFlags sorting(self) -> PySide6.QtCore.QDir.SortFlags [extrait de sorting.__doc__]
swap(self, other: Union[PySide6.QtCore.QDir, str]) -> None swap(self, other: Union[PySide6.QtCore.QDir, str]) -> None [extrait de swap.__doc__]
temp() -> PySide6.QtCore.QDir temp() -> PySide6.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

__delattr__, __getattribute__, __init_subclass__, __setattr__, __subclasshook__

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

__dir__, __format__, __hash__, __reduce_ex__, __sizeof__, __str__