QString button_style = "QToolButton {border:0;background-color: transparent;font-size:12px;}\
QToolButton:hover {background-color: rgb(210, 210, 210);} \
QToolButton:pressed {background-color: rgb(210, 210, 210);}";
ui->toolButton->setStyleSheet(button_style);
QToolButton样式设置记录
最新推荐文章于 2024-08-23 14:27:21 发布