Hello anyone,

In a QTableWidget you can update a item.
But is it possible to update a row when you click on the row in QTable through a QDialog.
I want to see the items in a row in the QLineEdits in QDialog.

Qt Code:
  1. void ContactWindow::edit(QTableWidgetItem *item )
  2. {
  3. int row;
  4. contactTable->selectRow(row);
  5.  
  6. {
  7. contactDialog dlg(this);
  8. dlg.leBedrijf->setText(item->text());
  9. dlg.leContact->setText(item->text());
  10. dlg.leTel->setText(item->text());
  11. if(dlg.exec() == QDialog::Accepted) {
  12. }
  13.  
  14. return;
  15. }
  16. }
  17.  
  18. }
To copy to clipboard, switch view to plain text mode 

There must be some changes in the code it only display one item.