qt
Expression qobject:parent() returns the parent of object qobject if such a parent exists. Otherwise it returns nil.
qobject:parent()
qobject
nil