Assuming the dialogs share same parent window, any
public
method of such parent window is accessible to both.
E.g. suppose the parent window (say
MainWindow
) implements a public method (say
getMass()
), then, in any of dialogs you may write:
MainWindow *pmw = reinterpret_cast<MainWindow *> (GetParent());
int mass = pmw->getMass();