You try to set some dialog properties in the string 3 (see quoted text) after the dialog is executed and closed (string 2) because the dialog is modal. Try the following:1: contactDialog dlg(this);
2: if(dlg.exec() == QDialog::Accepted)
3: dlg.leBedrijf->setText(item->text());
Qt Code:
ContactDialog dlg(this); dlg.setSomeField(item->text()); // Do something }To copy to clipboard, switch view to plain text mode
Bookmarks