#ifndef CUICOMPONENTBASEWIDGET_H #define CUICOMPONENTBASEWIDGET_H #include class CUIConfig; class CUIComponentBaseWidget : public QWidget { Q_OBJECT public: explicit CUIComponentBaseWidget(QWidget *parent = nullptr); virtual qint32 getLabelWidth(); virtual void setLabelWidth(qint32 width); protected: virtual QLayout* getLayout(CUIConfig* conf); virtual void initUI(); protected: QLayout* m_layout = nullptr; int m_labelLength = 100; signals: }; #endif // CUICOMPONENTBASEWIDGET_H