50 lines
786 B
C
50 lines
786 B
C
|
|
#ifndef MAINWINDOW_H
|
|||
|
|
#define MAINWINDOW_H
|
|||
|
|
|
|||
|
|
#include <QMainWindow>
|
|||
|
|
#include <QComboBox>
|
|||
|
|
#include <QTimer>
|
|||
|
|
|
|||
|
|
#include <thread>
|
|||
|
|
using namespace std;
|
|||
|
|
|
|||
|
|
namespace Ui {
|
|||
|
|
class MainWindow;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
class MainWindow : public QMainWindow
|
|||
|
|
{
|
|||
|
|
Q_OBJECT
|
|||
|
|
|
|||
|
|
public:
|
|||
|
|
explicit MainWindow(QWidget *parent = 0);
|
|||
|
|
~MainWindow();
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
void Connect();
|
|||
|
|
void Disconnect();
|
|||
|
|
|
|||
|
|
void CustomPlot_TestFun();
|
|||
|
|
|
|||
|
|
protected:
|
|||
|
|
bool eventFilter(QObject *obj, QEvent *event);
|
|||
|
|
|
|||
|
|
private slots:
|
|||
|
|
void OnButtonClicked();
|
|||
|
|
void OnComboxIndexChanged(int nIndex);
|
|||
|
|
void OnTimer();
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
void InitStyle();
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
Ui::MainWindow *ui;
|
|||
|
|
|
|||
|
|
QPoint m_ptMouse;
|
|||
|
|
bool m_bMousePressed;
|
|||
|
|
|
|||
|
|
QTimer m_varTimer;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
#endif // MAINWINDOW_H
|