1. ui中设置
#toolButton1{color: rgb(190, 192, 193); background-color:#404142; border:0px solid #2E2E2E;padding-top: 15px
}
#toolButton1::hover{background-color:rgb(94,95,96);
}
#toolButton1::checked{color:black; background-color:#f0f0f0; border:0px solid #2E2E2E;
}
#toolButton1::pressed{color:black; background-color:#f0f0f0; border:0px solid #2E2E2E;
}
cpp中设置
ui->statusbar->setStyleSheet("#statusbar{border:1px solid #404142;}");