Object Detection  5.0
Image Processing Using Qt and Opencv
serialmainwindow.h
1 #ifndef SERIALMAINWINDOW_H
2 #define SERIALMAINWINDOW_H
3 #include "serialportmodel.h"
4 
5 #include <QSerialPort>
6 #include <QMainWindow>
7 #include <qprocess.h>
8 
9 namespace Ui {
10 class SerialMainWindow;
11 }
12 
13 class SerialMainWindow : public QMainWindow
14 {
15  Q_OBJECT
16 
17 public:
18  explicit SerialMainWindow(QWidget *parent = 0);
20  QProcess *childProcess() const;
21 public slots:
22  void refreshModel();
23  void setChildProcess(QProcess *childProcess);
24 private slots:
25  void on__refreshPushButton_clicked();
26 
27  void on__portPushButton_clicked();
28 
29  void on__writePushButton_clicked();
30  void changeText();
31  void on__attachProcessPushButton_2_clicked();
32  void redirecteInput();
33  void redirecteOutput();
34  void childFinished(int i);
35  void childStatus(QProcess::ProcessState state);
36 private:
37  QProcess *m_childProcess;
38  QSerialPort *m_port;
39  SerialPortModel *m_model;
40  Ui::SerialMainWindow *ui;
41 };
42 
43 #endif // SERIALMAINWINDOW_H