QPushButton *button = new QPushButton("Button");
// 设置样式表
button->setStyleSheet("QPushButton {"
"background-color: rgb(181, 255, 184);"
"border-style: outset;"
"border-width: 2px;"
"border-radius: 10px;"
"border-color: beige;"
"font: bold 14px;"
"min-width: 10em;"
"padding: 6px;"
"}"
"QPushButton::pressed {"
"background-color: rgb(255, 255, 137);"
"border-style: inset;"
"}");
button->setFixedHeight(50);
ui->verticalLayout->addWidget(button);







![[笔记]C++并发编程实战 《三》线程间共享数据](https://img-blog.csdnimg.cn/e651987a11dc4cbc8f498a4bb572a2da.png)







