当前位置:网站首页>PySide2
PySide2
2022-04-23 14:01:00 【清新的草莓】
一、PySide2是什么?
Qt是一种强大的图形用户界面构造工具,如今它对Python提供友好的接口支持,分别是PyQt和PySide。PyQt采用需购买版权的商业及GPL许可,而PySide采用无需购买版权的LGPL许可。PySide与PyQt有非常相容的API,因此无需版权的PySide更适合广大Python爱好者的学习。PySide2支持Qt5框架,兼容Python2.7以上版本及 Python3.5以上版本。
二、使用步骤
1.软件开发环境
- window 10
- Python 3.8
- PySide2
2.安装PySide2
关于Python的安装请自行学习,这里不再累述。
安装PySide2的PyPI,命令行:
pip install --index-url=http://download.qt.io/snapshots/ci/pyside/5.11/latest/ pyside2 --trusted-host download.qt.io
3.查看安装结果
pip freeze
4.利用Pycharm设置集成开发环境
在PyCharm中自定义三个工具以便开发时使用。
- QtDesigner
- uic
- rcc
QtDesigner:用于快速设计、修改 ui 并生成 .ui 文件。
UIC:将制作好的 .ui 文件转化为 .py 文件
RCC:将资源文件 .rcc 文件转换成 .py文件
4.1 自定义 QtDesigner
- Program 填写:PySide2安装路径下
\Scripts\pyside2-designer.exe
- Arguments:无需填写
- Working directory 填写:项目路径
$ProjectFileDir$
4.2 自定义 Pyside2-uic
Program 填写:Python安装目录下: Scripts\pyside2-uic.exe
Arguments 填写:$FileName$ -o $FileNameWithoutExtension$.py
Working directory填写:$FileDir$
4.3 自定义 Pyside2-rcc
Program 填写:Python安装目录下: Scripts\pyside2-rcc.exe
Arguments 填写:$FileName$ -o $FileNameWithoutExtension$_rc.py
Working directory填写:$FileDir$
版权声明
本文为[清新的草莓]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_36540244/article/details/123713771
边栏推荐
- Strange bug of cnpm
- [code analysis (6)] communication efficient learning of deep networks from decentralized data
- [code analysis (3)] communication efficient learning of deep networks from decentralized data
- websocket
- Port occupied 1
- YARN线上动态资源调优
- 专题测试05·二重积分【李艳芳全程班】
- Leetcode brush question 𞓜 13 Roman numeral to integer
- The latest development of fed digital currency
- Oracle告警日志alert.log和跟踪trace文件中文乱码显示
猜你喜欢
Reading notes: meta matrix factorization for federated rating predictions
趣谈网络协议
低频量化之明日涨停预测
33 million IOPs, 39 microsecond delay, carbon footprint certification, who is serious?
Taobao released the baby prompt "your consumer protection deposit is insufficient, and the expiration protection has been started"
Express middleware ③ (custom Middleware)
淘宝发布宝贝提示“您的消保保证金额度不足,已启动到期保障”
CentOS mysql多实例部署
第一章 电商秒杀商品回顾
Quartus Prime硬件实验开发(DE2-115板)实验一CPU指令运算器设计
随机推荐
VsCode-Go
Choreographer full resolution
Tensorflow & pytorch common error reporting
CentOS mysql多实例部署
Kettle--控件解析
Leetcode brush question 𞓜 13 Roman numeral to integer
自动化的艺术
Postman reference summary
容差分析相关的计算公式
生成随机高质量符合高斯分布的随机数
mysql通过binlog文件恢复数据
How does redis solve the problems of cache avalanche, cache breakdown and cache penetration
China creates vast research infrastructure to support ambitious climate goals
1256: bouquet for algenon
Express ② (routing)
服务器中挖矿病毒了,屮
The latest development of fed digital currency
AtomicIntegerArray源码分析与感悟
Function executes only the once function for the first time
New关键字的学习和总结