DiagramDesigner/diagramCavas/include/monitorToolBox.h

22 lines
488 B
C
Raw Normal View History

2025-11-21 19:22:41 +08:00
#ifndef MONITORTOOLBOX_H
#define MONITORTOOLBOX_H
2025-11-24 10:20:37 +08:00
#include <QScrollArea>
2025-11-21 19:22:41 +08:00
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<QString,QWidget*> m_mapWidget;
};
#endif // MONITORTOOLBOX_H