QFileIconProvider Class
QFileIconProvider 类为QFileSystemModel 类提供文件图标。更多
Header: | #include <QFileIconProvider> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
qmake: | QT += widgets |
继承: | QAbstractFileIconProvider |
公共函数
QFileIconProvider() | |
virtual | ~QFileIconProvider() |
重新实现的公共函数
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.
© 2025 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.