第一种:qss设置
this->setAttribute(Qt::WA_TranslucentBackground);
// 主窗口已经透明需要加一层背景
QWidget* backwidget = new QWidget(this);
backwidget->setFixedSize(this->size());
backwidget->setStyleSheet
第一种:qss设置
this->setAttribute(Qt::WA_TranslucentBackground);
// 主窗口已经透明需要加一层背景
QWidget* backwidget = new QWidget(this);
backwidget->setFixedSize(this->size());
backwidget->setStyleSheet