If you load "page1.qml", for example, using a Loader, then you can access that item as the loader's "item".

But in general it might be wiser to just pass the object to the function when it is being called, as this makes the caller responsible for the correct input/context data not the callee.

This has the advantage of making the call more explicit, i.e. what it actually needs, and easier testable, i.e.no hidden dependencies that a test will also have to provide.

Cheers,
_