-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsub.h
57 lines (52 loc) · 1.12 KB
/
sub.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
57
#ifndef SUB_H
#define SUB_H
#include <QMainWindow>
#include<QPushButton>
//
#include<QLCDNumber>
#include<QTimerEvent>
#include<QTime>
#include<QDebug>
#include <QTextToSpeech>
#include <QMouseEvent>
namespace Ui {
class sub;
}
class sub : public QMainWindow
{
Q_OBJECT
public:
explicit sub(QWidget *parent = nullptr);
~sub();
void sentsignal();//发送close信号
void timerEvent(QTimerEvent *);//定时器
private slots:
void on_StartBtn_clicked();
void on_StopBtn_clicked();
signals:
//
void mysignal();
private:
Ui::sub *ui;
QPushButton b1;//切换按钮
QPushButton c1;//关闭按钮
//
QLCDNumber *lcd;
int clickedflag = 0;
int showflag = 1;
QString systimetext;
QString current_color;//颜色
float Opacity; //透明度控制
//定义一个播报
QTextToSpeech speech;
QTextToSpeech::State state;//五中枚举类型 1说话 0准备
//鼠标
int mouse_flag=0;
int mouse_x;
int mouse_y;
//鼠标按下
void mousePressEvent(QMouseEvent *ev);
//鼠标移动
void mouseMoveEvent(QMouseEvent *ev);
};
#endif // SUB_H