QPushButton{border-image: url(:/classMenuDlg/Res/gray/classMenuDlg/下正常.png);}
QPushButton:pressed{border-image: url(:/classMenuDlg/Res/gray/classMenuDlg/下按下.png);}
</pre><pre name="code" class="cpp">
---------------------------------------------------------------------------------
<pre name="code" class="cpp">QPushButton{border-image: url(:/resourceDlg/Res/gray/resourceDialog/生成资源---Assistor.png);}
QPushButton:hover{border-image: url(:/resourceDlg/Res/gray/resourceDialog/生成资源划过---Assistor.png);}
QPushButton:checked{border-image: url(:/resourceDlg/Res/gray/resourceDialog/生成资源按下 .png);}
QPushButton:pressed{border-image: url(:/resourceDlg/Res/gray/resourceDialog/生成资源按下 .png);}
<pre name="code" class="cpp"> ui->localResButton->setChecked(false);
ui->myResButton->setChecked(true);
updateButtonStatus();