1.建立资源管理工程
右键添加新工程

2.添加工程
回到QtDesigner,导入刚才建立的资源管理工程

3.导入并修改前缀

4.添加图片
一般新建图标文件夹放在项目下面
推介常用图标网站:
iconfont
flaticon


5.修改样式
添加tool-button修改图标样式

6.编译资源
回到QtDesigner编译资源

7.修改槽函数
回到QT,生成代码


8.编译窗体

9.修改槽函数代码

本文标题:Eric6+PyQt美化图标(傻瓜教程来了)
本文链接:https://www.haomeiwen.com/subject/lrvlnltx.html
网友评论