you are not setting the parent so getParent() will return nullptr and will crash if you try to dereference it or access any of it's methods
↧
you are not setting the parent so getParent() will return nullptr and will crash if you try to dereference it or access any of it's methods