MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
this->setWindowFlags(Qt::FramelessWindowHint);
this->setWindowOpacity(1);
this->setAttribute(Qt::WA_TranslucentBackground);
}
QT5-设置窗体透明
阅读 126
2022-11-08
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
this->setWindowFlags(Qt::FramelessWindowHint);
this->setWindowOpacity(1);
this->setAttribute(Qt::WA_TranslucentBackground);
}
相关推荐
精彩评论(0)