I have a PySide app which has an icon for the MainWindow (a QMainWindow instance). When I run the file normally, the icon is visible and everything
I had the same problem. After some investigation I found a solution: (Macke had the right idea)
cx_freeze does not copy the PyQt plugins directory, which contains the ico image reader.
Here are the steps:
setup.py copy the PyQt4 plugins directory to your distributionapplication_path = os.path.split(os.path.abspath(sys.argv[0]))[0] try: if sys.frozen: plugin_path = os.path.join(application_path, "qtplugins") app.addLibraryPath(plugin_path) except AttributeError: pass