pycharm配置QtDesigner

一、安装需要的库

pip install pyqt5

pip install pyqt5-tools

 或者

pip install pyside6

 

提示:mac上安装失败的话,需要使用brew install pyqt5 安装,然后将对应的文件复制到当前使用的虚拟环境中 

 

二、配置QtDesigner

 

配置 QtDesigner

Name:QtDesigner
Group:Qt
Program:C:\python\venv\Lib\site-packages\qt5_applications\Qt\bin\designer.exe
Working directory:$ProjectFileDir$

 

配置 PyQt5-UIC

Name:PyQt5-UIC
Group:Qt
Program:C:\python\venv\Scripts\python.exe
Arguments:-m PyQt5.uic.pyuic $FileName$ -o $FileNameWithoutExtension$.py
Working directory:$FileDir$

 

配置 PySide6-UIC

Name:PySide6-UIC
Group:Qt
Program:/Users/yf/python/test/venv/bin/pyside6-uic
Arguments: $FileName$ -o $FileNameWithoutExtension$.py
Working directory:$FileDir$

 

posted @ 2023-08-03 16:18  程序员小艺  阅读(153)  评论(0编辑  收藏  举报