#ifndef SENSORLAYOUT_H #define SENSORLAYOUT_H #include #include #include class SensorLayout : public QLayout { public: SensorLayout(QWidget *parent = nullptr); ~SensorLayout(); void addItem(QLayoutItem *item) override; QSize sizeHint() const override; QSize minimumSize() const override; int count() const override; QLayoutItem* itemAt(int index) const override; QLayoutItem* takeAt(int index) override; void setGeometry(const QRect &rect) override; private: QList items; int spacing = 20; }; #endif // SENSORLAYOUT_H