判断文件是否存在,获取文件名称,绝对路径,修改时间等等信息

fileInfo = Qt.QFileInfo(filename)

fileIcon = Qt.QFileIconProvider()

icon = QtGui.QIcon(fileIcon.icon(fileInfo))