mainwindow.h 472 B

1234567891011121314151617181920212223242526272829
  1. #ifndef __MAINWINDOW_H__
  2. #define __MAINWINDOW_H__
  3. #include <QMainWindow>
  4. #include <QStackedWidget>
  5. #define MAX_CANVAS_COUNT 12
  6. class MainWindow : public QMainWindow
  7. {
  8. Q_OBJECT
  9. public:
  10. explicit MainWindow(QWidget *parent = nullptr);
  11. ~MainWindow();
  12. protected:
  13. void init_ui();
  14. private:
  15. QStackedWidget *m_pStackedWidget;
  16. public slots:
  17. void onUpdateScreen(const QJsonObject &obj);
  18. void onPageSwitdh(int state);
  19. };
  20. #endif // MAINWINDOW_H