I have a table. And an item.
How can I use only one Item to fill part of the table?
If I set item to one position and then take item, I lose text at that position. And use lots of items is not comfortable.
QTableWidgetItem *Type = new QTableWidgetItem;
if( line.contains("some"))
{
Type->setText("some");
ui->tableWidget->setItem(i, 0, Type);
}
else if( line.contains("shi"))
{
Type->setText("shi");
ui->tableWidget->setItem(i, 0, Type);
}
ui->tableWidget->takeItem(i, 0);