mainwindow.h 545 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QMainWindow>
  4. #include <QListWidget>
  5. #include <QPushButton>
  6. namespace Ui {
  7. class MainWindow;
  8. }
  9. class MainWindow : public QMainWindow
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit MainWindow(QWidget *parent = 0);
  14. ~MainWindow();
  15. private slots:
  16. void on_m_test_btn_clicked();
  17. void on_m_add_clicked();
  18. private slots:
  19. void PLCSlot(uint16_t* data,int size);
  20. private:
  21. QPushButton* m_test_button;
  22. QListWidget* m_listbox;
  23. private:
  24. Ui::MainWindow *ui;
  25. };
  26. #endif // MAINWINDOW_H