PIP安装基础包
pip install pyqt5
pip install Pyqt5-tools
配置方式
需要配置的有designer.exe 与 pyuic.exe,具体配置位置在 file-setting-tools-external tools。
QT Designer:
注意参数为
D:\PYCHARMPROJCET\pyqt_test\venv\Lib\site-packages\qt5_applications\Qt\bin\designer.exe(注意修改为自己电脑的路径)
$FileDir$
$ProjectFileDir$
pyuic.exe:
参数如下:
D:\PYCHARMPROJCET\pyqt_test\venv\Scripts\pyuic5.exe
$FileName$ -o $FileNameWithoutExtension$.py
$FileDir$
使用
如果没有下面显示的东西请重启pycharm
点击pyuic就可以将ui文件变为对应的py文件