【发布时间】:2017-03-12 03:41:19
【问题描述】:
我正在尝试在悬停并按下时更改 QpushButton 的图标,我正在使用带有样式表的 QtDesigner。 我试过这个
QpushButton{
qproperty-icon:url(:/images/start.png);
}
QPushButton:hover
{
qproperty-icon:url(:/images/start_hov.png);
}
但它不起作用。
【问题讨论】:
标签: qt qt-designer qstylesheet