[Solved] Python Window Parent and Child Question - When Parent Closes, Child should Close too
-
Hi,
Does anyone know how to set the parent of a window & when the parent closes, the child also closes if open as well?
Here is my code:
@# parent is defined
..
..
child.setParent( parent, QtCore.Qt.Popup )@This is the best solution I could find...but it takes away the menu bar from the child window...
Any ideas?
Thanks!!
-
Solved it :)
Code for anyone who needs it in the future:
@parent.setAttribute(QtCore.Qt.WA_DeleteOnClose)@