QTableWidgetItem *newItem = new QTableWidgetItem(tr("0")); newItem->setTextColor(Qt::blue); newItem->setTextAlignment(Qt::AlignCenter); ui->sortedMatrixWidget->setItem(rowIdx, colIdx, newItem);
ui->srcMatrixWidget->item(rowIdx, colIdx)->text().toInt();