I'm opening a dialog that presents a form to the user with:
if(dialog.exec() == QDialog::Accepted)
{
// do stuff based on returned values
if (retval == 1)
{
value1=dialog.value1();
}
if (retval == 2)
{
// do something else with values from dialog
}
}
The form's buttons offer several choices for manipulating the data the user enters. The user may well want to do more than one thing with the data on the form. Is there a way to keep the dialog open until the reject() signal is passed by the dialog's cancel button?
I want the dialog to stay open until it is explicitly closed via the cancel button. I want the other buttons to function as they currently do, pass values back to the function that opened the dialog, but I want those values passed without closing the dialog.