mainwindow.h 438 B

12345678910111213141516171819202122232425262728
  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. };
  19. #endif // MAINWINDOW_H