Hello,
QList<QTableWidgetItem*> pItemlst = ui->tableWidget->findItems(stext, Qt::MatchContains);
QString stext = search string;
this gives me a list of "QTableWidgetItem*" which have the text "stext". now i need to clear all the items in "tableWidget" and insert only the items in "pItemlst".
When i try to insert give this error
"QTableWidget: cannot insert an item that is already owned by another QTableWidget"
All the "QTableWidgetItem*" items in pItemlst are owned by "tableWidget"...
how can i remove the ownership of those items???\
thank you




Reply With Quote
Bookmarks