It's a classic OOP problem that has nothing to do with Qt. If you encapsulate one object inside another one, you need to provide means (e.g. methods) in the external object to access the internal one.