当前位置:网站首页>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
边栏推荐
- linux MySQL数据定时dump
- 快捷键(多行)
- 蓝绿发布、滚动发布、灰度发布,有什么区别?
- [code analysis (5)] communication efficient learning of deep networks from decentralized data
- Reading notes: fedgnn: Federated graph neural network for privacy preserving recommendation
- crontab定时任务输出产生大量邮件耗尽文件系统inode问题处理
- 变长参数__VA_ARGS__ 和 写日志的宏定义
- try --finally
- Decimal 格式化小数位/DateTime 转换处理
- 美联储数字货币最新进展
猜你喜欢
Using Baidu Intelligent Cloud face detection interface to achieve photo quality detection
Quartus Prime硬件实验开发(DE2-115板)实验二功能可调综合计时器设计
STM32 learning record 0007 - new project (based on register version)
SSM project deployed in Alibaba cloud
JS 烧脑面试题大赏
Choreographer全解析
程序编译调试学习记录
商家案例 | 运动健康APP用户促活怎么做?做好这几点足矣
Modify the Jupiter notebook style
Port occupied 1
随机推荐
【vmware】vmware tools 地址
初识go语言
Taobao released the baby prompt "your consumer protection deposit is insufficient, and the expiration protection has been started"
China creates vast research infrastructure to support ambitious climate goals
CentOS mysql多实例部署
groutine
L2-024 部落 (25 分)
SQL: How to parse Microsoft Transact-SQL Statements in C# and to match the column aliases of a view
centOS下mysql主从配置
变长参数__VA_ARGS__ 和 写日志的宏定义
金蝶云星空API调用实践
Haruki Murakami -- Excerpt from "what do I talk about when I talk about running"
Basic knowledge learning record
[code analysis (1)] communication efficient learning of deep networks from decentralized data
Leetcode brush question 𞓜 13 Roman numeral to integer
Tensorflow & pytorch common error reporting
村上春树 --《当我谈跑步时,我谈些什么》句子摘录
AtCoder Beginner Contest 248C Dice Sum (生成函数)
Nacos+AspnetCore+Ocelot实战编码
剑南春把文字游戏玩明白了