QT-python开发流程

1、安装QT

https://blog.csdn.net/Yang_yang121/article/details/125058223

2、安装Pycharm

https://blog.csdn.net/qq_46628826/article/details/124361686

3、安装Python

https://blog.csdn.net/qq_45344586/article/details/124028689

4、在Pycharm中配置External tools

1)配置QTDesinger–配置和Desinger的关系

				program:**D:\CodeSoftware\Anaconda\Lib\site-packages\qt5_applications\Qt\bin\designer.exe**
				Arguments:
				working directory:**D:\CodeSoftware\Anaconda\Lib\site-packages\qt5_applications\Qt\bin**

2)配置pyuic5–把ui文件转为.py文件

				program:**D:\CodeSoftware\Anaconda\Scripts\pyuic5.exe**
				Arguments:**$FileName$ -o $FileNameWithoutExtension$.py**
				working directory:**$FileDir$**

3)配置pyrcc–把资源文件qrc转为.py文件

				program:**D:\CodeSoftware\Anaconda\Scripts\pyrcc5.exe**
				Arguments:**$FileName$ -o $FileNameWithoutExtension$.py**
				working directory:**$FileDir$**

5、打开QTDesigner

设计界面并转化为py文件,实现第一个例子

https://www.cnblogs.com/lhuser/p/14043080.html

创建qrc资源文件

https://blog.csdn.net/qq_36540244/article/details/124200278

导入qrc资源文件中的照片

向form里拖拽label,在属性编辑栏里找到pixmap,点击choose file,选择一个你喜欢的图片,这样label里就会加载你刚刚选的图片了。

导入qrc资源文件并转化为py文件

https://blog.csdn.net/qq_42980303/article/details/88047132

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值