如何使用Qt应用程序中的样式表改变QPushButton图标 [英] How to change QPushButton icon using stylesheets in Qt app
本文介绍了如何使用Qt应用程序中的样式表改变QPushButton图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以使用样式表设置和更改QPushButton上的图标?
我需要这个基于Windows的白标Qt4.5应用程序,
解决方案
Yup。
p> border-image:url(/ url / to / image);
Is it possible to set and change the icon on a QPushButton using stylesheets?
I need this for a Windows-based white-label Qt4.5 application that customers stylize using stylesheets.
Thanks.
解决方案
Yup.
border-image: url(/url/to/image);
这篇关于如何使用Qt应用程序中的样式表改变QPushButton图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文