m_simdeviceweiget->setMinimumSize(250, 50 + m_simdeviceaddno * 30);
m_simdeviceweiget->setMaximumSize(250, 50 + m_simdeviceaddno * 30);
QHBoxLayout *layout = new QHBoxLayout;
QLabel *label = new QLabel(m_simdeviceweiget);
QString number = QString::number(m_simdevicelabelnumber, 10);
label->setText(number);
m_vec_simdevicelabel.push_back(label);
QComboBox *box1 = new QComboBox(m_simdeviceweiget);
//从数据库加载
for (int i = 0; i < m_vec_simdevicename.size(); i++)
{
box1->insertItem(0, m_vec_simdevicename[i]);
}
box1->setEditable(true);
m_vec_simdevicenamecombobox.push_back(box1);
QCheckBox *cbox = new QCheckBox(m_simdeviceweiget);
m_vec_isdelete_simdevice.push_back(cbox);
layout->addWidget(label);
layout->addWidget(box1);
layout->addWidget(cbox);
m_simdevicemainlayout->addLayout(layout);
m_simdeviceweiget->setLayout(m_simdevicemainlayout);
ui.SimDevicescrollArea->setWidget(m_simdeviceweiget);