#FrameName #pushButton{
font-size:24px;
font-family:MicrosoftYaHei;
font-weight:bold;
color:rgba(77,77,77,1);
qproperty-iconSize:150px 112px;
qproperty-icon: url(data/images/userMangaer/teacher.png) off, url(data/images/userMangaer/teacher-focus.png) on;
}
以上为通过QSS来设置QPushButton的方法。
1、通过qproperty-iconSize来设置ICON的尺寸;
2、通过qproperty-icon:来设置ICON。
博客介绍了通过QSS设置QPushButton的方法,包括使用qproperty-iconSize设置ICON尺寸,使用qproperty-icon设置ICON,还给出了具体的代码示例,展示了字体、颜色等样式的设置。
926

被折叠的 条评论
为什么被折叠?



