Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to reopen the parent window after child window was set to hide?
Mohammadreza99A last edited by
I have a window which launches a second window like this:
this->hide(); signupWin = new signupWindow(get_this_peer(), this); / signupWin->show();
I want to know how could I reopen (show) the main window that launched signupWin after signupWin was been hidden with this->hide()?
@Mohammadreza99A Emit a signal in child which is connected in parent to a slot and in this slot call show().
Child emits this signel when parent needs to be shown again.
In addition to what @jsulm said, if there is parent & child relation ship exist between window, you will not be able to show the child. Keep these window objects without parent & child relationship.