|  | Home · All Classes · Modules

# QFileIconProvider Class Reference
[QtGui module]

The QFileIconProvider class provides file icons for the QDirModel(obsolete) and the QFileSystemModel classes. More...

### Types

- enum IconType { Computer, Desktop, Trashcan, Network, ..., File }

### Methods

- __init__ (self)
- QIcon icon (self, IconType)
- QIcon icon (self, QFileInfo)
- QString type (self, QFileInfo)

## Detailed Description

The QFileIconProvider class provides file icons for the QDirModel(obsolete) and the QFileSystemModel classes.

## Type Documentation

### QFileIconProvider.IconType

Constant | Value
--- | ---
`QFileIconProvider.Computer` | `0`
`QFileIconProvider.Desktop` | `1`
`QFileIconProvider.Trashcan` | `2`
`QFileIconProvider.Network` | `3`
`QFileIconProvider.Drive` | `4`
`QFileIconProvider.Folder` | `5`
`QFileIconProvider.File` | `6`

## Method Documentation

### QFileIconProvider.__init__ (self)

Constructs a file icon provider.

### QIcon QFileIconProvider.icon (self, IconType)

Returns an icon set for the given type.

### QIcon QFileIconProvider.icon (self, QFileInfo)

Returns an icon for the file described by info.

### QString QFileIconProvider.type (self, QFileInfo)

Returns the type of the file described by info.