首页 > 其他分享 >QTableWidget 遍历

QTableWidget 遍历

时间:2022-11-08 09:44:38浏览次数:47  
标签:遍历 item int QTableWidget ++ right col row

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

相关文章