#ifndef MONITORTOOLPAGE_H #define MONITORTOOLPAGE_H #include class QFormLayout; class QLabel; class QPushButton; class MonitorToolPage : public QWidget { Q_OBJECT public: explicit MonitorToolPage(QWidget *parent = nullptr); ~MonitorToolPage(); public slots: void addWidget(const QString &title, QWidget *widget); void expand(); void collapse(); private slots: void onPushButtonFoldClicked(); private: bool m_bIsExpanded; QLabel *m_pLabel; QPushButton *m_pPushButtonFold; QWidget *m_pContent; }; #endif // MONITORTOOLPAGE_HTOOLPAGE_H