1.一个QGroupBox 中添加QCheckBox,控制这个QGroupBox是否可用,当check为true时QGroupBox可用,反之不可用.group里有个限制1000以内的整形数的QLineEdit和一个QLabel
m_LineEditCustom = new QLineEdit;
m_LineEditCustom->setValidator(new QIntValidator(1, 999, m_LineEditIterate));
m_GroupCustom = new QGroupBox(QString("输入初始值"));
m_GroupCustom->setCheckable(true);
m_GroupCustom->setChecked(false);
QHBoxLayout* hLayout = new QHBoxLayout;
hLayout->addWidget(new QLabel("输入值:"));
hLayout->addWidget(m_LineEditCustom);
m_GroupCustom->setLayout(hLayout);
2.QComboBox添加选项Item
QStringList DrawTypeList;
DrawTypeList.clear();
DrawTypeList.push_back(QString("第一个"));
DrawTypeList.push_back(QString("第二个"));
DrawTypeList.push_back(QString("第三个"));
DrawTypeList.push_back(QString("第四个"));
DrawTypeList.push_back(QString("第五个"));
m_ComboBox->clear();
m_C