1. Download PYQT
Official website: HTTP://WWW.RIVERBANKCOMPUTING.COM/SOFTWARE/PYQT/DOWNLOAD5
My operating system is 64-bit, the installation is Python3.4.3, so I choose to download:pyqt5-5.4.1-gpl-py3.4-qt5.4.1-x64. exe
Click Install.
2. Configure Pycharm
1) Open Pycharm, perform shortcut key Ctrl+alt+s Open the Setup interface, input tool, open external tools, configure Qtdesigner.
Click the plus sign in the upper left corner to configure the following:
In QT designer settings, program selects the designer.exe path in the PYQT installation directory
Work directory uses variables $ProjectFileDir $ (click the Insert macro button later to double-click on the screen without typing)
2). Set "Pyuic" -this is primarily used to convert the QT interface into a py code
In the Pyuic settings, the other is the same, program writes to the Python address, parameters writes
-M PyQt5.uic.pyuic $FileName $-O $FileNameWithoutExtension $.py
Change the python path above to your own!
Work directory uses variables $ProjectFileDir $
Use Qtdesigner to generate the UI file first, and then use Pyuic to convert the UI file to the corresponding Python file
Pyqt5+python3+pycharm Development Environment Configuration