When you hide a parent window, all of its child windows are also hidden. If you want to hide and unhide windows, they either must be siblings (each children of the same parent) or be unrelated.
You can implement closeEvent() for your search window to emit a signal that says "I'm about to close". Connect that signal to a slot in your main window that calls show().
Bookmarks