添加:
QComboBox* cmb = new QComboBox(this);
cmb->addItems({"HL", "LH","HLHL","LHLH"});
mbtbView->setIndexWidget(model->index(curDevNum, 4), cmb);
获取单元格控件指针:
QComboBox *gg=(QComboBox*)(mbtbView->indexWidget(model->index(0,4)));
qDebug()<<"COOM:" <<gg->currentIndex();