I have one main Window and one non-modal Dialog. I suppose non-modal dialog should close itself when I close main window. Instead if I open non-modal dialog, I should close manually both of them - if I close main window, non-modal dialog will remain, and I need to close it manually.
# App and main window
app = QtGui.QApplication(sys.argv)
window = Window()
window.show()
sys.exit(app.exec_())
class Window ... :
...
def func:
non_modal_dialog = NonModalDialog()
non_modal_dialog.show()
...
What should I do so when I close main window all non-modal dialogs will be closed automatically?
Thank you.