#ifndef MTABWIDGET_H #define MTABWIDGET_H #include #include #include #include #include #include #include #include #include #include #include #include class mTabWidget : public QWidget { Q_OBJECT public: explicit mTabWidget(QWidget *wDeviceManager, QWidget *wProgramManager, QWidget *wAdvanceManager, QWidget *wDeviceSetting, QWidget *wGuangYinPin, QWidget *parent = nullptr); public: QPushButton *bnDeviceManager = nullptr ; QPushButton *bnProgramManager = nullptr; QPushButton *bnDeviceSetting = nullptr; QPushButton *bnAdvanceManager = nullptr; QPushButton *bnGuangYinPin = nullptr; void refreshLable(); void onGuangYingPinChanged(); protected: virtual void paintEvent(QPaintEvent *); signals: void sigOpenDeviceUdpTimer(bool b); protected slots: void onBnsClicked(int id); private: int curIndex; QButtonGroup *m_bns; QVector m_wnds; QWidget *m_pDeviceWidget=nullptr; }; #endif // MTABWIDGET_H