简体   繁体   English

如何在Qt应用程序中使用样式表更改QPushButton图标大小

[英]How to change QPushButton icon size using stylesheets in Qt app

Is it possible to set and change the icon size on a QPushButton using stylesheets? 是否可以使用样式表在QPushButton上设置和更改图标大小? I need this for a qt based template that customers stylize using stylesheets. 我需要这个基于qt的模板,客户使用样式表进行样式化。

在样式表中使用以下代码:

qproperty-iconSize: 24px;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM