Skip to content

PythonQt.QtGui.QFileIconProvider · declarations 001

Back to PythonQt.QtGui.QFileIconProvider

Computer instance-attribute

Computer: Any

Drive instance-attribute

Drive: Any

File instance-attribute

File: Any

Folder instance-attribute

Folder: Any

IconType instance-attribute

IconType: 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

Network instance-attribute

Network: Any

Trashcan instance-attribute

Trashcan: Any

icon

icon(type: Any) -> Any

X.icon(type) -> PythonQt.QtGui.QIcon

Supplemental documentation: Qt 5 reference:

[virtual] QIcon QFileIconProvider::icon(QFileIconProvider::IconType type) const

Returns an icon set for the given type.

[virtual] QIcon QFileIconProvider::icon(const QFileInfo \&info) const

Returns an icon for the file described by info.

Upstream PySide2 reference signatures (binding differences may apply):

icon(self, info: PySide2.QtCore.QFileInfo) -> PySide2.QtGui.QIcon
icon(self, type: PySide2.QtWidgets.QFileIconProvider.IconType) -> PySide2.QtGui.QIcon

Source: https://doc.qt.io/archives/qt-5.15/qfileiconprovider.html#icon

options

options() -> Any

X.options()

Supplemental documentation: Qt 5 reference:

QFileIconProvider::Options QFileIconProvider::options() const

Returns all the options that affect the icon provider. By default, all options are disabled.

This function was introduced in Qt 5.2.

See also setOptions().

Upstream PySide2 reference signatures (binding differences may apply):

options(self) -> PySide2.QtWidgets.QFileIconProvider.Options

Source: https://doc.qt.io/archives/qt-5.15/qfileiconprovider.html#options

setOptions

setOptions(options: Any) -> None

X.setOptions(options)

Supplemental documentation: Qt 5 reference:

void QFileIconProvider::setOptions(QFileIconProvider::Options options)

Sets options that affect the icon provider.

This function was introduced in Qt 5.2.

See also options().

Upstream PySide2 reference signatures (binding differences may apply):

setOptions(self, options: PySide2.QtWidgets.QFileIconProvider.Options) -> None

Source: https://doc.qt.io/archives/qt-5.15/qfileiconprovider.html#setOptions

type

type(info: Any) -> str

X.type(info) -> str

Supplemental documentation: Qt 5 reference:

[virtual] QString QFileIconProvider::type(const QFileInfo \&info) const

Returns the type of the file described by info.

Upstream PySide2 reference signatures (binding differences may apply):

type(self, info: PySide2.QtCore.QFileInfo) -> str

Source: https://doc.qt.io/archives/qt-5.15/qfileiconprovider.html#type