本页内容

QFileIconProvider Class

QFileIconProvider 类为QFileSystemModel 类提供文件图标。更多内容...

头文件: #include <QFileIconProvider>
CMake: find_package(Qt6 REQUIRED COMPONENTS Widgets)
target_link_libraries(mytarget PRIVATE Qt6::Widgets)
qmake: QT += widgets
继承自: QAbstractFileIconProvider

公共函数

重新实现的公共函数

virtual QIcon icon(QAbstractFileIconProvider::IconType type) const override
virtual QIcon icon(const QFileInfo &info) const override

详细说明

成员函数文档

QFileIconProvider::QFileIconProvider()

创建一个文件图标提供程序。

[virtual noexcept] QFileIconProvider::~QFileIconProvider()

销毁文件图标提供程序。

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

重写了:QAbstractFileIconProvider::icon(QAbstractFileIconProvider::IconType type) const。

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

重写了:QAbstractFileIconProvider::icon(const QFileInfo &info) const。

© 2026 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.