-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmaskmainwidget.h
54 lines (38 loc) · 929 Bytes
/
maskmainwidget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef MASKMAINWIDGET_H
#define MASKMAINWIDGET_H
#include <QWidget>
#include <upwidget.h>
#include <downwidget.h>
#include <QVBoxLayout>
#include <QtPrintSupport/QPrinter>
#include <QPixmap>
#include <QMouseEvent>
#include <QPoint>
#include <QBrush>
#include <QtMath>
#include <QMouseEvent>
#include <QPoint>
class maskmainwidget : public QWidget
{
Q_OBJECT
public:
explicit maskmainwidget(QWidget *parent = 0);
upwidget *m_upwidget;
downwidget *m_downwidget;
QVBoxLayout *mainlayout;
QPixmap *m_backgroundpixmap;
void paintEvent(QPaintEvent *event);
//void maxsize();
protected:
//鼠标移动事件
// void mousePressEvent(QMouseEvent * event );
// void mouseReleaseEvent(QMouseEvent *);
// void mouseMoveEvent(QMouseEvent *event);
signals:
void signalsize(QSize);
public slots:
void slotmax(QSize);
private:
bool isMax_;
};
#endif // MASKMAINWIDGET_H