forked from Blackmamba-xuan/QtQQ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform.h
56 lines (47 loc) · 1.2 KB
/
form.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
55
56
#ifndef FORM_H
#define FORM_H
#include <QWidget>
#include<QLabel>
#include<QMovie>
#include<QMouseEvent>
#include<QDebug>
#include<QPropertyAnimation>
#include<QImage>
#include<QDesktopServices>
#include<QPropertyAnimation>
#include<QNetworkAccessManager>
#include<QCryptographicHash>
#include "talk.h"
namespace Ui {
class Form;
}
class Form : public QWidget
{
Q_OBJECT
public:
explicit Form(QWidget *parent = 0);
~Form();
QPoint move_point; //移动的距离
bool mouse_press; //鼠标按下
//鼠标按下事件
void mousePressEvent(QMouseEvent *event);
//鼠标释放事件
void mouseReleaseEvent(QMouseEvent *event);
//鼠标移动事件
void mouseMoveEvent(QMouseEvent *event);
//最小化及关闭
bool eventFilter(QObject *object, QEvent *e);
private slots:
void on_pushButton_clicked();
void on_lineEdit_2_returnPressed();
void on_lineEdit_textEdited(const QString &arg1);
void parseresult(QNetworkReply* reply);
protected:
void showEvent(QShowEvent *event);
private:
Ui::Form *ui;
int i;
QPropertyAnimation *animation;
QByteArray byte_array;//发送验证信息
};
#endif // FORM_H