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), QDialog(parent),
ui(new Ui::Process) ui(new Ui::Process)
{ {
qDebug()<<"Qt::WindowCloseButtonHint: "<< ~int(Qt::WindowCloseButtonHint);
ui->setupUi(this); ui->setupUi(this);
ui->progressBar->setValue(1); ui->progressBar->setValue(1);
setWindowFlags(Qt::FramelessWindowHint); setWindowFlags(this->windowFlags()
this->setModal(true); & (~Qt::WindowCloseButtonHint)
& (~Qt::WindowContextHelpButtonHint));
mParent = parent; mParent = parent;
this->hide(); this->hide();
this->setModal(true);
} }
QSSProcessBar::~QSSProcessBar() QSSProcessBar::~QSSProcessBar()