Im performing search operation on a tablewidget.(using search key)
Highlighted found key in the table widget.
Now i want to update the table, which contains only those rows which has search key.

Now i already highlighted the found search key, but i'm unable to fetch whole row which contains the search key.
Please tell me how can i get that particular row, which contain that search key?
Qt Code:
  1. QString SearchKey=ui->lineEdit_key->text();
  2. QList<QTableWidgetItem *> LTempTable =temp->findItems(SearchKey,Qt::MatchExactly);
  3.  
  4.  
  5. cout<<"the matched count:"<<LTempTable.count()<<endl;
  6. foreach(rowPtr,LTempTable)
  7. {
  8. rowPtr->setBackground(Qt::red);
  9. int rowNo=temp->row(rowPtr);
  10. cout<<"THE ROW NUMBER IS:"<<rowNo<<endl; <-----getting row number but how can i get complete row?
  11.  
  12. }
  13. }
To copy to clipboard, switch view to plain text mode