- 继承
QFileIconProvider
类实现自己的图标提供器 - 重写
def icon(self, type_info)
方法根据文件类型返回对应的图标
QFileSystemModel
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
QFileIconProvider
类实现自己的图标提供器def icon(self, type_info)
方法根据文件类型返回对应的图标