There are objects that are created in the main window. Then, this objects have more objects inside them, ...
for example:
It's a bit to abstract example to propose any other solutions, so either you will have to pass the pointer or, if you have only one main window instance, you can use the singleton pattern.
Bookmarks