当前位置: 代码迷 >> QT开发 >> qpushbutton的背景色,该怎么解决
  详细解决方案

qpushbutton的背景色,该怎么解决

热度:46   发布时间:2016-04-25 04:14:35.0
qpushbutton的背景色
通过 ui->jiQiJianShi->setStyleSheet("background-color: rgb(255, 85, 255);");jiQiJianShi为一个qpushbutton,将qpushbutton的背景色改变了,我想恢复为默认的颜色,请问用代码如何实现?用代码如何获取默认的颜色?
------解决方案--------------------
只要一个空的样式表, ui->jiQiJianShi->setStyleSheet("");
------解决方案--------------------
默认的话,直接把样式清空即可.