pycharm install QTdesigner

Install Pyqt5

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

pycharm configuration

tool configuration

Open pycharm, click file -> settings: continue to click tools -> external tools, and then click the plus sign in the red circle in the figure below

QT designer

The first tool is called QTdesigner (the name can be chosen by yourself), and there are two settings to be filled in here.
1. First find the path of pyqt5

pip3 show pyqt5-tools

If it is not in this directory, just search it. Mine is in D:\Program Files (x86)\anaconda\Scripts\designer.exe
2. The second setting is the specific path of the project (Working Directory), considering future development There may be many projects, and it is troublesome to switch paths every time, so select FileDir as shown in the figure below, which means the directory of the current project.

PyUIC

The second tool PyUIC needs to input three settings:
1. The location of python.exe in the system.
2. Fixed parameters (cannot fill in other):

-m PyQt5.uic.pyuic $FileName$ -o $FileNameWithoutExtension$.py

3. The directory where the project is currently located.

use

tools -> external tools -> QTdesigner can be used

Guess you like

Origin blog.csdn.net/GodGump/article/details/128084999