I've been searching the internet and cannot find a proper answer as when one should user "Parent" and "Child". I see these two used all over, I have not used them myself in my programs, and now I'm wondering if I have missed something in creating my software. I am wondering why and when should they be used. I've only gathered that they should be used when one class controls another. Only thing I have done in that sense is call another class/window, from a class. Example below.
class MainWindow(QtGui.QMainWindow):
def __init__(self):
super(MainWindow, self).__init__()
self.doSomething
class Child(QtWidgets.QWidget)
def __init__(self, Parent)
super(Child, self).__init__(Parent)
self.doSomething