no message

qt6
zcy 2021-11-18 10:39:23 +08:00
parent 632a74f2bb
commit 32dcc1ab62
1 changed files with 5 additions and 2 deletions

View File

@ -1685,13 +1685,16 @@ QSSProcessBar::QSSProcessBar(QWidget *parent) :
QDialog(parent),
ui(new Ui::Process)
{
qDebug()<<"Qt::WindowCloseButtonHint: "<< ~int(Qt::WindowCloseButtonHint);
ui->setupUi(this);
ui->progressBar->setValue(1);
setWindowFlags(Qt::FramelessWindowHint);
this->setModal(true);
setWindowFlags(this->windowFlags()
& (~Qt::WindowCloseButtonHint)
& (~Qt::WindowContextHelpButtonHint));
mParent = parent;
this->hide();
this->setModal(true);
}
QSSProcessBar::~QSSProcessBar()