QAbstractFileIconProvider#
The QAbstractFileIconProvider
class provides file icons for the QFileSystemModel
class. More…
Inherited by: QFileIconProvider
Detailed Description#
- class PySide6.QtGui.QAbstractFileIconProvider#
Constructs a file icon provider.
- PySide6.QtGui.QAbstractFileIconProvider.IconType#
Constant
Description
QAbstractFileIconProvider.Computer
The icon used for the computing device as a whole
QAbstractFileIconProvider.Desktop
The icon for the special “Desktop” directory of the user
QAbstractFileIconProvider.Trashcan
The icon for the user’s “Trash” place in the desktop’s file manager
QAbstractFileIconProvider.Network
The icon for the “Network Servers” place in the desktop’s file manager, and workgroups within the network
QAbstractFileIconProvider.Drive
The icon used for disk drives
QAbstractFileIconProvider.Folder
The standard folder icon used to represent directories on local filesystems
QAbstractFileIconProvider.File
The icon used for generic text file types
- PySide6.QtGui.QAbstractFileIconProvider.Option#
Constant
Description
QAbstractFileIconProvider.DontUseCustomDirectoryIcons
(inherits
enum.Flag
) Always use the default directory icon. Some platforms allow the user to set a different icon. Custom icon lookup cause a big performance impact over network or removable drives.
Returns an icon set for the given type
, using the current icon theme.
See also
- PySide6.QtGui.QAbstractFileIconProvider.icon(arg__1)
- Parameters
arg__1 –
PySide6.QtCore.QFileInfo
- Return type
Returns an icon for the file described by info
, using the current icon theme.
See also
- PySide6.QtGui.QAbstractFileIconProvider.options()#
- Return type
Options
Returns all the options that affect the icon provider. By default, all options are disabled.
See also
- PySide6.QtGui.QAbstractFileIconProvider.setOptions(arg__1)#
- Parameters
arg__1 –
Options
Sets options
that affect the icon provider.
See also
- PySide6.QtGui.QAbstractFileIconProvider.type(arg__1)#
- Parameters
arg__1 –
PySide6.QtCore.QFileInfo
- Return type
str
Returns the type of the file described by info
.