Qt控件与按钮颜色透明
生活随笔
收集整理的這篇文章主要介紹了
Qt控件与按钮颜色透明
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
QT設(shè)置按鈕控件透明:
代碼://設(shè)置按鈕 背景 前景 this->ui->ShowCvRGB->setStyleSheet(QString("color:rgba(255,255,255,255);background-color:rgba(100,100,100,100)")); // 第一個(gè) 為前景色;第二個(gè) 為北京色; 透明度 為a this->ui->ShowPcdFile->setStyleSheet(QString("color:rgba(255,255,255,255);background-color:rgba(100,100,100,100)")); this->ui->QwtPlotDraw->setStyleSheet(QString("color:rgba(255,255,255,255);background-color:rgba(0,0,0,0)"));this->ui->Train->setStyleSheet(QString("color:rgba(255,255,255,255);background-color:rgba(100,100,100,100)")); this->ui->Classify->setStyleSheet(QString("color:rgba(255,255,255,255);background-color:rgba(100,100,100,100)")); this->ui->Abnormal->setStyleSheet(QString("color:rgba(255,255,255,255);background-color:rgba(100,100,100,100)"));總結(jié)
以上是生活随笔為你收集整理的Qt控件与按钮颜色透明的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: QT右键菜单栏
- 下一篇: 初始化QChart极坐标图(含曲线、散点