#ifndef GLABEL_H #define GLABEL_H #include #include template class Wgt{ public: T *wgt; Wgt(T *wgt = nullptr){ this->wgt = wgt; }; inline Wgt* margin(int a){ wgt->setMargin(a); return this; } }; class VBox : public QVBoxLayout{ public: inline VBox(QWidget *parent=nullptr) : QVBoxLayout(parent){} inline VBox(QBoxLayout *boxLayout){ boxLayout->addLayout(this); }; }; class Label : public QLabel, public Wgt