Skip to content

PythonQt.QtCore.QDir · declarations 001

Back to PythonQt.QtCore.QDir

AccessMask instance-attribute

AccessMask: Any

AllDirs instance-attribute

AllDirs: Any

AllEntries instance-attribute

AllEntries: Any

CaseSensitive instance-attribute

CaseSensitive: Any

Dirs instance-attribute

Dirs: Any

DirsFirst instance-attribute

DirsFirst: Any

DirsLast instance-attribute

DirsLast: Any

Drives instance-attribute

Drives: Any

Executable instance-attribute

Executable: Any

Files instance-attribute

Files: Any

Filter instance-attribute

Filter: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

Filters instance-attribute

Filters: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

Hidden instance-attribute

Hidden: Any

IgnoreCase instance-attribute

IgnoreCase: Any

LocaleAware instance-attribute

LocaleAware: Any

Modified instance-attribute

Modified: Any

Name instance-attribute

Name: Any

NoDot instance-attribute

NoDot: Any

NoDotAndDotDot instance-attribute

NoDotAndDotDot: Any

NoDotDot instance-attribute

NoDotDot: Any

NoFilter instance-attribute

NoFilter: Any

NoSort instance-attribute

NoSort: Any
NoSymLinks: Any

PermissionMask instance-attribute

PermissionMask: Any

Readable instance-attribute

Readable: Any

Reversed instance-attribute

Reversed: Any

Size instance-attribute

Size: Any

SortByMask instance-attribute

SortByMask: Any

SortFlag instance-attribute

SortFlag: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

SortFlags instance-attribute

SortFlags: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

System instance-attribute

System: Any

Time instance-attribute

Time: Any

Type instance-attribute

Type: Any

TypeMask instance-attribute

TypeMask: Any

Unsorted instance-attribute

Unsorted: Any

Writable instance-attribute

Writable: Any

absoluteFilePath

absoluteFilePath(fileName: str) -> str

X.absoluteFilePath(fileName) -> str

Supplemental documentation: Qt 5 reference:

QString QDir::absoluteFilePath(const QString \&fileName) const

Returns the absolute path name of a file in the directory. Does not check if the file actually exists in the directory; but see exists(). Redundant multiple separators or "." and ".." directories in fileName are not removed (see cleanPath()).

See also relativeFilePath(), filePath(), and canonicalPath().

Upstream PySide2 reference signatures (binding differences may apply):

absoluteFilePath(self, fileName: str) -> str

Source: https://doc.qt.io/archives/qt-5.15/qdir.html#absoluteFilePath

absolutePath

absolutePath() -> str

X.absolutePath() -> str

Supplemental documentation: Qt 5 reference:

QString QDir::absolutePath() const

Returns the absolute path (a path that starts with "/" or with a drive specification), which may contain symbolic links, but never contains redundant ".", ".." or multiple separators.

See also setPath(), canonicalPath(), exists(), cleanPath(), dirName(), and absoluteFilePath().

Upstream PySide2 reference signatures (binding differences may apply):

absolutePath(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qdir.html#absolutePath

addSearchPath

addSearchPath(prefix: str, path: str) -> None

X.addSearchPath(prefix, path)

Supplemental documentation: Qt 5 reference:

[static] void QDir::addSearchPath(const QString \&prefix, const QString \&path)

Adds path to the search path for prefix.

This function was introduced in Qt 4.3.

See also setSearchPaths().

Upstream PySide2 reference signatures (binding differences may apply):

addSearchPath(prefix: str, path: str) -> None

Source: https://doc.qt.io/archives/qt-5.15/qdir.html#addSearchPath

canonicalPath

canonicalPath() -> str

X.canonicalPath() -> str

Supplemental documentation: Qt 5 reference:

QString QDir::canonicalPath() const

Returns the canonical path, i.e. a path without symbolic links or redundant "." or ".." elements.

On systems that do not have symbolic links this function will always return the same string that absolutePath() returns. If the canonical path does not exist (normally due to dangling symbolic links) canonicalPath() returns an empty string.

Example:

QString bin = "/local/bin";         // where /local/bin is a symlink to /usr/bin
QDir binDir(bin);
QString canonicalBin = binDir.canonicalPath();
// canonicalBin now equals "/usr/bin"

QString ls = "/local/bin/ls";       // where ls is the executable "ls"
QDir lsDir(ls);
QString canonicalLs = lsDir.canonicalPath();
// canonicalLS now equals "/usr/bin/ls".

See also path(), absolutePath(), exists(), cleanPath(), dirName(), and absoluteFilePath().

Upstream PySide2 reference signatures (binding differences may apply):

canonicalPath(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qdir.html#canonicalPath