修正大量demo

This commit is contained in:
feiyangqingyun
2021-03-08 09:04:48 +08:00
parent 2f5f9bd427
commit 23a32e6d32
32 changed files with 428 additions and 209 deletions

View File

@@ -4,12 +4,13 @@
#include "ui_frmmaskwidget.h"
#include "maskwidget.h"
#include "qdialog.h"
#include "qtimer.h"
#include "qdebug.h"
frmMaskWidget::frmMaskWidget(QWidget *parent) : QWidget(parent), ui(new Ui::frmMaskWidget)
{
ui->setupUi(this);
MaskWidget::Instance()->setMainWidget(this);
MaskWidget::Instance()->setDialogNames(QStringList() << "frmTest");
QTimer::singleShot(1000, this, SLOT(initForm()));
}
frmMaskWidget::~frmMaskWidget()
@@ -18,6 +19,12 @@ frmMaskWidget::~frmMaskWidget()
exit(0);
}
void frmMaskWidget::initForm()
{
MaskWidget::Instance()->setMainWidget(this->topLevelWidget());
MaskWidget::Instance()->setDialogNames(QStringList() << "frmTest");
}
void frmMaskWidget::on_pushButton_clicked()
{
QDialog d;

View File

@@ -15,11 +15,12 @@ public:
explicit frmMaskWidget(QWidget *parent = 0);
~frmMaskWidget();
private slots:
void on_pushButton_clicked();
private:
Ui::frmMaskWidget *ui;
private slots:
void initForm();
void on_pushButton_clicked();
};
#endif // FRMMASKWIDGET_H

View File

@@ -18,12 +18,12 @@
<rect>
<x>10</x>
<y>10</y>
<width>131</width>
<height>23</height>
<width>92</width>
<height>28</height>
</rect>
</property>
<property name="text">
<string>弹出遮罩窗体</string>
<string>弹出</string>
</property>
</widget>
</widget>