#ifndef CUICOMBOBOX_H #define CUICOMBOBOX_H #include #include class CUIConfig; class CUI; class QLabel; class QHBoxLayout; class CUIComboBox : public QWidget { Q_OBJECT public: explicit CUIComboBox(CUIConfig* conf, QVector &subCUI, QWidget *parent = nullptr); qint32 getLabelWidth(); void setLabelWidth(qint32 width); private: void iniUI(QVector &subCUI); void iniComoboBox(); QComboBox* comboBox; QLabel* label; CUIConfig* conf; QVector Items; QHBoxLayout* layout; signals: }; #endif // CUICOMBOBOX_H