pyqt application lost icon after packaged by cx_freeze [duplicate]

橙三吉。 提交于 2019-12-24 03:17:43

问题


Possible Duplicate:
Images not showing when running a frozen pyqt app on another computer

I have a pyqt application whose icon is in a resource file. I can see the icon when run the application using python app.py. But after I package the application using cx_freeze, the icon is missing. I can see the compiled resource in the `library.zip' (generated by cx_freeze), but the icon is still missing. Any one can help? Thanks.


回答1:


I had this problem and I was using an .ico file for the icon. However when I used a .gif file for the icon instead, I got my icon back. Hope this helps.

If not, try not using the icon as a compiled resource, but just a normal file in its directory.



来源:https://stackoverflow.com/questions/3499902/pyqt-application-lost-icon-after-packaged-by-cx-freeze

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!