当前位置:网站首页>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
边栏推荐
- Force deduction brush question 101 Symmetric binary tree
- SQL learning window function
- Reading notes: meta matrix factorization for federated rating predictions
- MySQL 修改主数据库
- 淘宝发布宝贝提示“您的消保保证金额度不足,已启动到期保障”
- 第十五章 软件工程新技术
- [code analysis (5)] communication efficient learning of deep networks from decentralized data
- [VMware] address of VMware Tools
- AtomicIntegerArray源码分析与感悟
- 腾讯根据ip解析地址
猜你喜欢

Taobao released the baby prompt "your consumer protection deposit is insufficient, and the expiration protection has been started"

神经元与神经网络

Kettle--控件解析

第一章 电商秒杀商品回顾

JS brain burning interview question reward

SSM project deployed in Alibaba cloud

Oracle告警日志alert.log和跟踪trace文件中文乱码显示

Modify the Jupiter notebook style

cnpm的诡异bug

Basic knowledge learning record
随机推荐
redis如何解决缓存雪崩、缓存击穿和缓存穿透问题
Chapter 15 new technologies of software engineering
【项目】小帽外卖(八)
Interesting talk about network protocol
村上春树 --《当我谈跑步时,我谈些什么》句子摘录
商家案例 | 运动健康APP用户促活怎么做?做好这几点足矣
腾讯根据ip解析地址
初探 Lambda Powertools TypeScript
服务器中挖矿病毒了,屮
3300万IOPS、39微秒延迟、碳足迹认证,谁在认真搞事情?
json反序列化匿名数组/对象
Android 面试主题集合整理
Business case | how to promote the activity of sports and health app users? It is enough to do these points well
多线程 @Async 线程池
Quartus prime hardware experimental development (de2-115 board) experiment 1 CPU instruction calculator design
Express中间件③(自定义中间件)
Decentralized Collaborative Learning Framework for Next POI Recommendation
编程旅行之函数
About note 1
Haruki Murakami -- Excerpt from "what do I talk about when I talk about running"