Access parent variables and functions through component c++

Are you looking for something like this?