pycharm
1.菜单栏 file>setting…
2.Settings对话框左栏 Tools>External Tools
点击加号添加:
Name:Qt Designer
Program:C:\Qt\Qt5.9.1\5.9.1\mingw53_32\bin\designer.exe
Parameters:$FileName$
Working directory:$FileDir$
Name:PyUIC
Program:D:\Python36-32\python.exe
Parameters:-m PyQt5.uic.pyuic $FileName$ -o $FileNameWithoutExtension$.py
Working directory:$FileDir$
3.菜单栏 Tools>External Tools