重新上传

This commit is contained in:
feiyangqingyun
2021-01-16 12:41:38 +08:00
parent 9cf0de0f8d
commit e8195be0e3
149 changed files with 1545 additions and 6219 deletions

View File

@@ -2,8 +2,8 @@
#include "maskwidget.h"
#include "qmutex.h"
#include "qapplication.h"
#include "qdesktopwidget.h"
#include "qapplication.h"
#include "qdebug.h"
QScopedPointer<MaskWidget> MaskWidget::self;
@@ -56,7 +56,7 @@ void MaskWidget::setOpacity(double opacity)
void MaskWidget::setBgColor(const QColor &bgColor)
{
QPalette palette = this->palette();
palette.setBrush(QPalette::Background, bgColor);
palette.setBrush(QPalette::Window, bgColor);
this->setPalette(palette);
}

View File

@@ -3,23 +3,17 @@
/**
* 弹窗遮罩层控件 作者:feiyangqingyun(QQ:517216493) 2016-12-26
* 1:可设置需要遮罩的主窗体,自动跟随主窗体位置显示遮罩面积
* 2:只需要将弹窗窗体的名称一开始传入队列即可,足够简单
* 3:可设置透明度
* 4:可设置遮罩层颜色
* 5:不阻塞消息循坏
* 1. 可设置需要遮罩的主窗体,自动跟随主窗体位置显示遮罩面积
* 2. 只需要将弹窗窗体的名称一开始传入队列即可,足够简单
* 3. 可设置透明度
* 4. 可设置遮罩层颜色
* 5. 不阻塞消息循坏
*/
#include <QWidget>
#ifdef quc
#if (QT_VERSION < QT_VERSION_CHECK(5,7,0))
#include <QtDesigner/QDesignerExportWidget>
#else
#include <QtUiPlugin/QDesignerExportWidget>
#endif
class QDESIGNER_WIDGET_EXPORT MaskWidget : public QWidget
class Q_DECL_EXPORT MaskWidget : public QWidget
#else
class MaskWidget : public QWidget
#endif