As is written in the docs I would like to edit setThemeSearchPaths()
as from current code:
if __name__ == "__main__":
app = QtGui.QApplication([])
for path in QtGui.QIcon.themeSearchPaths():
print "%s/%s" % (path, QtGui.QIcon.themeName())
it prints out:
C:/Python27/icons/
:/icons/
And no icons are found. I would like to ask you what path do I have to pass as input argument in function setThemeSearchPaths()
on win7?
As I found out the icons should be on path/file:
C:\Windows\system32\imageres.dll
But if I input a path to .dll
file nothing happens?
Windows doesn't have any icon themes. Qt uses freedesktop icon specification .
Using default paths, either extract your icon theme to C:/Python27/icons/
or embed it as a Qt resource.
You can try to download Faenza Icons. You should end up with file structure like:
icons/<theme name>/index.theme
icons/<theme name>/apps/
icons/<theme name>/actions/
...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.