QFileIconProvider¶
The
QFileIconProvider
class provides file icons for theQDirModel
and theQFileSystemModel
classes. More…
Synopsis¶
Functions¶
def
options
()def
setOptions
(options)
Virtual functions¶
Detailed Description¶
- class PySide2.QtWidgets.QFileIconProvider¶
Constructs a file icon provider.
- PySide2.QtWidgets.QFileIconProvider.IconType¶
Constant
Description
QFileIconProvider.Computer
QFileIconProvider.Desktop
QFileIconProvider.Trashcan
QFileIconProvider.Network
QFileIconProvider.Drive
QFileIconProvider.Folder
QFileIconProvider.File
- PySide2.QtWidgets.QFileIconProvider.Option¶
Constant
Description
QFileIconProvider.DontUseCustomDirectoryIcons
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.
- PySide2.QtWidgets.QFileIconProvider.icon(type)¶
- Parameters:
type –
IconType
- Return type:
Returns an icon set for the given
type
.
- PySide2.QtWidgets.QFileIconProvider.icon(info)
- Parameters:
info –
PySide2.QtCore.QFileInfo
- Return type:
- PySide2.QtWidgets.QFileIconProvider.options()¶
- Return type:
Options
Returns all the options that affect the icon provider. By default, all options are disabled.
See also
- PySide2.QtWidgets.QFileIconProvider.setOptions(options)¶
- Parameters:
options –
Options
Sets
options
that affect the icon provider.See also
- PySide2.QtWidgets.QFileIconProvider.type(info)¶
- Parameters:
info –
PySide2.QtCore.QFileInfo
- Return type:
str
Returns the type of the file described by
info
.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.