当前位置:网站首页>PIP installation Qt5.
PIP installation Qt5.
2022-06-11 03:01:00 【aheadkeeper】
First : If your Python 3.79 Version above , Please reduce the version to 3.79 Or the following .
secondly :pip Installation command
direct pip Can be installed :
pip install PyQt5
pip install pyqt5-tools
Domestic sources are recommended , For quick installation :
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyqt5
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyqt5-tools2.2 PyCharm Configuration environment
start-up PyCharm after , Create a new one PyQt5 After empty item , Need configuration Qt Designer、pyuic、pyrcc Tools , The relevant configuration methods are as follows :
2.2.1 Qt Designer
Qt Designer Is to place the control by dragging , And view the effect of the control in real time for rapid control UI Design .
The resulting .ui file ( Is essentially XML File format ), Can pass pyuic5 The tool translates into .py file .
stay Pycharm in , In turn, open File - Settings - Tools - External Tools, Click on + Create Tool, The configuration is as follows :
Name: QtDisigner
Program : C:\Python38\Lib\site-packages\pyqt5_tools\Qt\bin\designer.exe # At present designer Catalog , Please modify according to the actual situation
Working directory: $FileDir$

PyQt5 Can't find Designer.exe The problem of
designer.exe The new path :
%python_home%\Lib\site-packages\qt5_applications\Qt\bin\designer.exe
2.2.3 PyUIC To configure
PyUIC It's mainly about Qt Designer Generated .ui Replace the document with .py file .
stay Pycharm in , In turn, open File - Settings - Tools - External Tools, Click on + Create Tool, The configuration is as follows :
Name: PyUIC
Program : C:\Python38\python.exe # At present Python Catalog , Please modify according to the actual situation
Arguments: -m PyQt5.uic.pyuic $FileName$ -o $FileNameWithoutExtension$.py
Working directory: $FileDir$

边栏推荐
- Arduino使用NRF24L01模块进行无线通信
- Three special data types, day3 and redis (geographic location, cardinality statistics and bitmap scene usage)
- CPT 102_ LEC 16
- Help you distinguish GNU, GCC, GCC and G++
- 位置数据融合表3
- 弄懂了采矿业与碳中和的逻辑,就读懂了矿区无人驾驶的千亿市场
- How to add two factor authentication for WordPress websites
- How to use phpMyAdmin to optimize MySQL database
- Looking at the ups and downs of the mobile phone accessories market from the green Union's sprint for IPO
- RS232/RS485转4G DTU 上传基于Modbus协议的温湿度传感器数据到远程TCP服务器
猜你喜欢
随机推荐
二叉树最小最低公共祖先
Cygwin reports an error child_ info_ fork::abort: XXX. dll: Loaded to different address: parent(XXX) != child(XXX)
CPT 102_ LEC 15
intXX_ T and int_ fastXX_ T what is the difference- What is the difference between intXX_ t and int_ fastXX_ t?
B_ QuRT_ User_ Guide(20)
UBIFS FAQ and HOWTO
出栈序列是否是入栈序列
One line of code solves the problem that the time to fetch datetime from MySQL database is less than eight hours
Graphacademy course explanation: Fundamentals of neo4j graph data science
If you understand the logic of mining and carbon neutrality, you will understand the 100 billion market of driverless mining areas
Blue Bridge Cup_ Xiao Lan eats candy_ Pigeon nest principle / drawer principle
巴歇尔槽流量计远程采集物联网关在明渠流量监测的应用
靠贴牌飞利浦冲击上市,德尔玛的自有品牌又该如何“起跳”?
HOSATAPD_ CLI debug using WiFi whitelist
Helm deploy traifik ingress
AOSP ~ modify default volume
MySQL is required to sort in ascending order greater than or equal to the current time, and then in descending order less than the current time
. Net module and assembly - NET Module vs Assembly
How to handle error code 30204-44 when installing office 2016 in win10?
Prophet









