1、安装PyQt5

pip3 install PyQt5 -i https://pypi.douban.com/simple

2、安装PyQt5_tools

pip3 install PyQt5-tools -i https://pypi.douban.com/simple

3、安装PyQt5designer

3.1

pip3 install PyQt5designer -i https://pypi.douban.com/simple

3.2 添加为扩展插件

        依次点击File—>settings—>Tools—>External Tools,点击添加按钮将pyqt5designer添加为扩展插件。

参数说明:

Name:任意

Description:任意

Program:designer.exe所在位置

Argument:不填

Working directory:$FileDir$

4、安装pyuic5_tool

4.1

        依次点击File—>settings—>Project—>Python Interpreter,点击添加按钮并安装pyuic5_tool

4.2 添加为扩展插件

        和3.2的步骤差不多,参数填写说明如下:

Name:任意

Description:任意

Program:pyuic5.exe所在位置

Argument:$FileName$ -o $FileNameWithoutExtension$.py

Working directory:$FileDir$

5、添加pyrcc为扩展插件

        和3.2的步骤差不多,参数填写说明如下:

Name:任意

Description:任意

Program:pyrcc5.exe所在位置

Argument:$FileName$ -o $FileNameWithoutExtension$_rc.py

Working directory:$FileDir$

6、打开PyQt5designer

        依次点击Tools—>External Tools—>你的PyQt5designer名,就能打开PyQt5designer,界面如下所示:

 

更多推荐