QDialog的 透明背景 两种办法可以做到调整背景透明色 //1. this->setWindowFlags (Qt::FramelessWindowHint); //设置窗口无边框 this->setAttribute(Qt::WA_TranslucentBackground); //小部件应该具有半透明的背景 this