PyQt5 + Pycharm 开发环境搭建
1. PyQt5安装
pip install PyQt5 PyQt5-tools
2. Pycharm 配置
打开pycharm -> Settings -> Tools -> External Tools
2.1 添加Qt Designer工具
Name:Qt Designer
program:Qt Designer安装路径(e.g. C:\Program Files\Python37\Lib\site-packages\qt5_applications\Qt\bin\designer.exe)
Arguments:$FileName$
Working directory:$FileDir$
2.2 添加pyuic工具
Name:pyuic
program:pyuic安装路径(e.g. C:\Program Files\Python37\Scripts\pyuic5.exe)
Arguments:$FileName$ -o $FileNameWithoutExtension$.py
Working directory:$FileDir$
2.3 添加pyrcc工具
Name:pyrcc
program:pyrcc安装路径(e.g. C:\Program Files\Python37\Scripts\pyrcc5.exe)
Arguments:$FileName$ -o $FileNameWithoutExtension$.py
Working directory:$FileDir$
未经本人同意 请务转载 David QQ:435398366