Qt 6.11 is out! See what's new in the release
blog
[SOLVED] How I can set QTableWidget cells?
General and Desktop
2
Posts
1
Posters
1.7k
Views
1
Watching
-
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();@ -
[SOLVED] :D
I added this line and worked.
@ ui->tableWidget->insertRow(row);@Google is my best friend :D