runchwiget.h 510 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef RUNCHWIGET_H
  2. #define RUNCHWIGET_H
  3. #include <QWidget>
  4. #include "ch_widget.h"
  5. namespace Ui {
  6. class RunChWiget;
  7. }
  8. class RunChWiget : public QWidget
  9. {
  10. Q_OBJECT
  11. public:
  12. explicit RunChWiget(QWidget *parent = nullptr);
  13. ~RunChWiget();
  14. void setRunCh();
  15. void UpdateAllCh();
  16. void ClearCH();
  17. void AddWidget(ch_Widget* pCHWidget);
  18. void initScrollArea();
  19. private:
  20. Ui::RunChWiget *ui;
  21. int SaveIndex=0;
  22. QVector<ch_Widget*> m_vecChWidget;
  23. };
  24. #endif // RUNCHWIGET_H