关于QT的QPushButton的ICON问题~

关于QT的QPushButton的ICON问题~,第1张

大小并不是固定,这是原话

The default size is defined by the GUI style. This is a maximum size for the icons. Smaller icons will not be scaled up.

的是最大值,小图标不会被拉伸。

pushButton->setStyleSheet("background-color:transparent")

pushbutton换成自己UI里的名字应该就行了


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/tougao/11221345.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-14
下一篇 2023-05-14

发表评论

登录后才能评论

评论列表(0条)

保存