1、环境配置
https://zhuanlan.zhihu.com/p/35389494
如还需要使用qt的资源,比如图片、icon等内容,则还需要使用pyrcc的插件来将资源文件转换为py脚本,具体如下,找到pyrcc的路径即可。

2、逻辑脚本和代码分离
https://zhuanlan.zhihu.com/p/52920094
3、打包 使用pyinstaller
https://blog.csdn.net/luoyhang003/article/details/51090380
http://legendtkl.com/2015/11/06/pyinstaller/
解决mac 下界面工具显示模糊的问题
https://blog.csdn.net/Blaststone/article/details/89351090
如果要在mac 平台下打一个清晰的,快速启动的文件夹的包,分三步
pyinstaller --windowed --clean --noconfirm testqt.py
在第一步打完包的spec文件的app bundle字段内加入 info_plist = {'NSHighResolutionCapable': 'True'}
pyinstaller --clean --noconfirm --windowed --onefile testqt.spec
网友评论