Hello anyone

I have a question
I want to update a QTableWidget through a Dialog is this possible?
When i click with the mouse on a item in the QTableWidget it popup a Dialog.
When i compile everthing works fine but i don't see any item displaying in my Dialog.
I have tried severall options.
See code

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