'Return the path of parameter names from self to child.
If child is not a (grand)child of self, return None.'

def childPath(self, child):

    path = []
    while (child is not self):
        path.insert(0, child.name())
        child = child.parent()
        if (child is None):
            return None
    return path
