-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathmainwindow.h
53 lines (38 loc) · 1.01 KB
/
mainwindow.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
/**
* 李震
* 我的码云:https://git.oschina.net/git-lizhen
* 我的CSDN博客:http://blog.csdn.net/weixin_38215395
* 联系:QQ1039953685
*/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QImage>
#include <QPaintEvent>
#include <QWidget>
#include "videoplayer/videoplayer.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
protected:
void paintEvent(QPaintEvent *event);
private:
Ui::MainWindow *ui;
VideoPlayer *mPlayer; //播放线程
QImage mImage; //记录当前的图像
QImage R_mImage; //2017.8.11---lizhen
QString url;
bool open_red=false;
private slots:
void slotGetOneFrame(QImage img);
void slotGetRFrame(QImage img);///2017.8.11---lizhen
bool slotOpenRed(); ///2017.8.12---lizhen
bool slotCloseRed(); ///2017.8.12
};
#endif // MAINWINDOW_H