我随便设了一下,不是被覆盖,而是按钮半透明,透了一些颜色过来。把按钮的透明度减少,或不透明
this->setStyleSheet("background-color:rgba(255, 255,0, 100)");
ui->pushButton->setStyleSheet("background-color:rgba(255, 0,0, 255)");
就这两句
我随便设了一下,不是被覆盖,而是按钮半透明,透了一些颜色过来。把按钮的透明度减少,或不透明
this->setStyleSheet("background-color:rgba(255, 255,0, 100)");
ui->pushButton->setStyleSheet("background-color:rgba(255, 0,0, 255)");
就这两句
设置背景色透明
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M