window 安装PyQt5
pip install pyqt5
pip install pyqt5-tools
配置QT环境变量
变量名: QT_QPA_PLATFORM_PLUGIN_PATH
变量值: D:\workspace\Python\练习\venv\Lib\site-packages\PyQt5\Qt\plugins (PyQt5的安装目录)
设置扩展工具参数
1.配置QtDesigner参数
program: D:\workspace\Python\练习\venv\Lib\site-packages\pyqt5_tools\designer.exe (designer.exe的路经)
working directory: $FileDir$
2.配置pyuic5工具:将Qt Designer生成的.ui文件转换成.py文件的工具
program: D:\workspace\Python\练习\venv\Scripts\pyuic5.exe (pyuic.exe的路经)
arguments: $FileName$ -o $FileNameWithoutExtension$.py
working directory: $FileDir$
原文地址:https://www.cnblogs.com/frank-shen/p/10363172.html
时间: 2024-11-02 23:32:03