#ifndef MONITORTOOLBOX_H #define MONITORTOOLBOX_H #include class QVBoxLayout; class MonitorToolBox : public QScrollArea { Q_OBJECT public: explicit MonitorToolBox(QWidget *parent = nullptr); ~MonitorToolBox(); void addWidget(const QString &title, QWidget *widget); void removeWidget(const QString &title); private: QWidget* _container; QVBoxLayout *m_pContentVBoxLayout; QMap m_mapWidget; }; #endif // MONITORTOOLBOX_H