-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
56 lines (50 loc) · 1.39 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
54
55
56
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "win_qextserialport.h"
#include "visualdescribe.h"
#include "data.h"
#include <QGraphicsDropShadowEffect>
#include <QPalette>
#include <QTimer>
// 3D
#include <window.h>
#include <Qt3DRenderer/qrenderaspect.h>
#include <Qt3DInput/QInputAspect>
#include <Qt3DQuick/QQmlAspectEngine>
#include <QGuiApplication>
#include <QQmlContext>
#include <QQmlEngine>
#include <data.h>
//#include <QTimer> // 使用Polling模式(查询方式)
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private:
Ui::MainWindow *ui;
Win_QextSerialPort *myCom;
visualDescribe vDwin;
QTimer *updateTimer; // 对界面上的数据控件更新值
QTimer *updateDialTimer; // 对界面上的表盘控件更行值
QTimer *updateThermoTimer; // 对界面上的表盘控件更行值
Data *nowData;
QByteArray temp;
QByteArray allData;
//QTimer *readTimer; // 使用Polling模式(查询方式)
private slots:
void readMyCom();
void on_openMyComBtn_clicked();
void on_closeMyComBtn_clicked();
void on_sendMsgBtn_clicked();
void on_showVDBtn_clicked();
void updateData();
void changeSpeed();
void changeHigh();
};
#endif // MAINWINDOW_H