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:ur
I maked it in designer, from ui_...h file:
QIcon icon; icon.addFile(QStringLiteral(":/unpressed.png"), QSize(), QIcon::Normal, QIcon::Off); icon.addFile(QStringLiteral(":/pressed.png"), QSize(), QIcon::Normal, QIcon::On); pushButton->setIcon(icon);