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