Python configuration Qt Designer and PyUIC
- Install pyqt related packages
pip install pyqt
pip install pyqt5-tools
- Select the corresponding python interpreter in PyCharm
3. Add external tools
Fill in the name for your convenience and easy to remember. My name is added as the QTDesigner
program and select designer.exe. The location is Lib\site-packages\pyqt5-tools\designer.exe under the current interpreter path. The
working directory is the directory of the current project file.
After adding the selection interface is:
OK, add PyUIC again (the same process)
PyUIC
The program path is Scripts\pyuic5.exe under the current interpreter.
Remember: you must add parameters here, otherwise an error will be reported later: Error: one input ui-file must be specified.
The parameter is added as: Remember to add $FileName$ -o $FileNameWithoutExtension$.py
".py" at the end .
OK, all added.
In the menu bar: Tools→External Tools to find the added application