G
N
I
D
A
O
L

QTableWidget 遍历

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);
}
posted @ 2022-11-08 09:36  StimuMing  阅读(548)  评论(0编辑  收藏  举报