下拉框comboBox动态跟随行、列,添加、删除变化功能: void myMainWindow::add_row() { int row = ui->tableWidget->currentRow(); int newRow = row + 1;//当前行号 +1<