i'am searching a easy way to get the pressed button from QDialog widget. (all buttons finished the dialog after a pressed event, Many Buttons). this way:
MyDialog *ptrMyDialog = new MyDialog;
ptrMyDialog->exec(); // blocked til finished
// ???
QAbstractButton * btn = ptrMyDialog->Function_I_Need();
// or. I only need a spezific return value, set by button. e.g
auto retValIneed= ptrMyDialog->exec();
Any hint will be helpful
regards Lars