qt代码设置样式

ui->btn2->setStyleSheet("QPushButton{\ background:#EE6AA7;\ border:1px solid #8B7E66;\ border-radius:5px;\ color:white;\ }\ QPushButton:hover{\ background:#FF6EB4;\ }\ QPushButton:hover:pressed{\ background:#CD6090; \ }");
posted @ 2023-06-02 17:48  雾枫  阅读(30)  评论(0编辑  收藏  举报