Change QPushButton Icon on hover and pressed
问题 I'm trying to change the Icon of a QpushButton on hover and pressed, I'm using QtDesigner with stylesheets. I tried this QpushButton{ qproperty-icon:url(:/images/start.png); } QPushButton:hover { qproperty-icon:url(:/images/start_hov.png); } But it doesn't work. I tried setting it from QtDesigner Menu but it didn't work as well. 回答1: Unfortunately, it is a bug of Qt which is still not fixed. There's a workaround suggestion within the comments to that bug, basically you could use empty