1234567891011121314151617181920212223242526272829 |
- #ifndef MAINWINDOW_H
- #define MAINWINDOW_H
- #include <QMainWindow>
- #include <QtSerialPort/QtSerialPort>
- namespace Ui {
- class MainWindow;
- }
- class MainWindow : public QMainWindow
- {
- Q_OBJECT
- public:
- explicit MainWindow(QWidget *parent = 0);
- ~MainWindow();
- private:
- Ui::MainWindow *ui;
- QSerialPort *serial;
- void OpenSerial();
- void CloseSerial();
- private slots:
- void on_ReadSerial();
- };
- #endif // MAINWINDOW_H
|