window 安装PyQt5
pip install pyqt5
pip install pyqt5-tools (安装常用的Qt工具)
添加环境变量
变量名: QT_QPA_PLATFORM_PLUGIN_PATH
变量值: D:workspacePython练习venvLibsite-packagesPyQt5Qtplugins (PyQt5 plugins的安装目录)
设置扩展工具参数
1.配置QtDesigner参数
program: D:workspacePython练习venvLibsite-packagespyqt5_toolsdesigner.exe (designer.exe的路经)
working directory: $FileDir$
2.配置pyuic5工具:将Qt Designer生成的.ui文件转换成.py文件的工具
program: D:workspacePython练习venvScriptspyuic5.exe (pyuic.exe的路经)
arguments: $FileName$ -o $FileNameWithoutExtension$.py
working directory: $FileDir$