综合平台编辑器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
520 B

  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QMainWindow>
  4. #include "hmimodule.h"
  5. QT_BEGIN_NAMESPACE
  6. namespace Ui {
  7. class MainWindow;
  8. }
  9. QT_END_NAMESPACE
  10. class MainWindow : public QMainWindow
  11. {
  12. Q_OBJECT
  13. public:
  14. MainWindow(QWidget *parent = nullptr);
  15. ~MainWindow();
  16. private:
  17. void initMainWindow();
  18. // 一个用于接收日志并更新UI的槽函数
  19. private slots:
  20. void appendLog(const QString& message);
  21. private:
  22. Ui::MainWindow *ui_;
  23. HMIModule* hmi_;
  24. };
  25. #endif // MAINWINDOW_H