#include "nmGUIComponentComboBox.h" #include #include #include #include Q_DECLARE_METATYPE(int *) Q_DECLARE_METATYPE(double *) Q_DECLARE_METATYPE(QString *) nmGUIComponentComboBox::nmGUIComponentComboBox(nmDataAttribute* pOriginValue, bool enable, QWidget *parent) : nmGUIComponentBase(pOriginValue, enable, parent) { m_eUIType = NM_GUI_Component_Type_ComboBox; this->initUI(); this->initInitValue(); this->setStyleSheet("{ background-color: red; }"); } void nmGUIComponentComboBox::init() { this->initUI(); // 根据输入的可选择项 this->initInitValue(); }