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
In c++ , we can achieve it using the following code:
ui->button->setStyleSheet("QPushButton{border-image : url(./default_Img.png);} QPushButton:hover{border-image : url(./hover_Img.png); }" "QPushButton:focus{border-image : url(./focus_Img.png);}");