qt禁止编辑tableWidget1234QTableWidgetItem* pItem = ui->tableWidget->item(i, 1);pItem->setFlags(pItem->flags() & (~Qt::ItemIsEditable));pItem = ui->tableWidget->item(i, 2);pItem->setFlags(pItem->flags() & (~Qt::ItemIsEditable));