QLabel *label = new QLabel;
label->setAttribute(Qt::WA_TranslucentBackground);
label->setStyleSheet("background:transparent");
less
两个均可以this
隐藏标题栏代码:spa
this->setWindowFlags(Qt::FramelessWindowHint);//在设计师类界面中用这个this指针。
设计
QLabel *label = new QLabel;
label->setAttribute(Qt::WA_TranslucentBackground);
label->setStyleSheet("background:transparent");
less
两个均可以this
隐藏标题栏代码:spa
this->setWindowFlags(Qt::FramelessWindowHint);//在设计师类界面中用这个this指针。
设计