Hi all,
I create a QTableWidget, with a determined number of rows and collumns, now i need initialize all values in 0, i can initialize this, but is so slowly. In this moment i use this method to make it.
size = rows = collumns
Qt Code:
QTableWidgetItem *tableItem; tableItem->setText("0"); for(int i=0; i < size; i++){ for(int j=0; j < size; j++){ ui->tableWidgetMatrix->setItem(i,j,tableItem); } }To copy to clipboard, switch view to plain text mode
Is possible to make it diferent? Because i work with more than 500 rows and collumns!
Sorry my english, and thanks for helps!
Fernando Bottin
Bookmarks