表格中一般情况下是无法使用comobox和QPushButton的, 那么 这时候就要使用代理也就是改写QItemDelegate来使用。如:ui->tabServo->setItemDelegateForRow(15,m_15);代理第15行