for(int row=0; row<ui->tableWidget->rowCount(); row++)
{
for(int col=0; col<ui->tableWidget->columnCount(); col++)
{
QTableWidgetItem* item = ui->tableWidget_right->item(row,col);
}
}
for(int row=0; row<ui->tableWidget->rowCount(); row++)
{
QTableWidgetItem* item = ui->tableWidget_right->item(row,0);
}
标签:遍历,item,int,QTableWidget,++,right,col,row
From: https://www.cnblogs.com/fole-del/p/16868626.html