How to install Qt Designer
Using Qt Designer, you can quickly generate PyQt code using GUI. This article describes how to install Qt Designer and how to configure it in PyCharm.
After installing PyQt5, there is no Qt Designer.exe. At least my computer is like this. Further installation is required to obtain Qt Designer.exe. The installation method is to enter the command as shown in cmd, pip install PyQt5-tools-I https://pypi.douban.com/simple -- trusted-host = pypi.douban.com. This command download speed is very fast, in fact, if you can endure the download speed, you can also use the general download command, pip install PyQt5-tools, this command is better remembered.
After the PyQt5-tools is installed, we can find the Qt designer.exefile, Which is set as shown in the following figure. The file name is designer.exe, rather than qtdesigner.exe.
The functions of these three files are briefly introduced.
Designer.exe: GUI Design Interface of PyQt5.
Pyuic5.exe: used to convert the interface designed by designer.exe to a Python program file.
Pyrcc5.exe: used to convert resource files, sample files, and Python files for packaging.
The setting method is as follows:
(1) File-Settings
(2) Tools-External Toos, added QtDesigner, PyUIC, and PyRCC.
(3) The specific configuration of QtDesigner is as follows:
(4) The specific configuration of PyUIC is as follows:
(5) The specific configuration of PyRCC is as follows:
So far, the installation of the entire Qt Designer has been completed.