Connect two windows
-
Well then then just create the method in second dialog end call it after dialog closed:
@void on_showdialog_action()
{
uSecondDialog *usrDlg = new uSecondDialog(this);
if(usrDlg->exec() == QDialog::Accepted)
{
uCalcResultStruct result = usrDlg->getCalcResult();
}
}@Something like that.
uCalcResultStruct is some your struct which can store all data you need.