Solved Getting Information from Dialog
-
Hey, my question is, when I created a Dialog with:
Dialog dialog;
dialog.setModal(true);
dialog.exec();I want to set some setting in this dialog. And after I am finished, so when the dialog gets closed. I want to access these setting, like this:
int value = dialog.getValue();
But When i close the Dialog, all information are gone. My question is, what is a good and easy way so i can get the information of that Dialog?
-
@Domididongo The information is not gone if you close the dialog: you still have the instance.
Dialog dialog; dialog.setModal(true); dialog.exec(); // Code here will be executed after dialog is closed - you still can access dialog. int value = dialog.getValue(); // <-- this should work as long as dialog has getValue() method
-
Oh ... Thank you. That it was gone.