[SOLVED] How I can set QTableWidget cells?
General and Desktop
2
Posts
1
Posters
1.5k
Views
1
Watching
-
wrote on 18 Jul 2012, 18:36 last edited by
I have a QTableWidget, with 2 colums, and n row.
How I can fill the cells?I wrote this code, but didnt work.
@QTableWidgetItem *newItem = new QTableWidgetItem;
newItem->setText(list[i]);
ui->tableWidget->setItem(row, 0, newItem);
++row;
ui->tableWidget->update();@ -
wrote on 18 Jul 2012, 19:17 last edited by
[SOLVED] :D
I added this line and worked.
@ ui->tableWidget->insertRow(row);@Google is my best friend :D
1/2