QAbstractFileIconEngine Class

Helper base class for retrieving icons for files for usage by QFileIconProvider and related. More...

Header: #include <QAbstractFileIconEngine>
Inherits: QPixmapIconEngine

Detailed Description

Reimplement availableSizes() and new virtual filePixmap() and return icons created with this engine from QPlatformTheme::fileIcon().

Note: The class internally caches pixmaps for files by suffix (with the exception of some files on Windows), but not for directories (since directory icons may have overlay icons on Windows). You might want to cache pixmaps for directories in your implementation.

\since5.8 \internal

\ingroupqpa

See also QFileIconProvider::DontUseCustomDirectoryIcons and QPlatformTheme.