I have a app developed in PyQt4.
It has icons set for windows and QMenus.
All client systems have installed python. And PyQt4 is loaded from network location (\\system_xyz\PyQt4)
.
The app works fine in developer systems with icons loaded properly. But when the same script is run on clients, app works but icons are not loaded.
In my app i used Qsql drivers also. It too had the same issue. works at developer system but not at client system.
I could able to overcome this sql driver issue by adding sql plugin path to the app like below
SQLDriverPath = (r'\\system_xyz\PyQt4\plugins\sqldrivers')
QtGui.QApplication.addLibraryPath(SQLDriverPath)
I came to understand that pyqt4 needs qico4.dll
to read .ico files.
so i added the imageformats
path to the app. but it did not work.
ImageDriverPath = (r'\\system_xyz\PyQt4\plugins\imageformats')
QtGui.QApplication.addLibraryPath(ImageDriverPath)
Can any one suggest me a correct approach to solve my issue loading .ico in PyQt app from network
MY UPDATES
i did following to list the supported image formats.
import sys
sys.path.append(r'r'\\system_xyz')
from PyQt4 import QtGui
for imageType in QtGui.QImageReader.supportedImageFormats():
print imageType
OUTPUT
bmp
pbm
pgm
png
ppm
xbm
xpm
I tried to list as above after adding imageformats
, The OP is the same
even tried after creating QtGui,QApplication()
. Same result no change.