I have the following structure for my project:
--rootFolder
main.qml
header.qml
footer.qml
functions.js
----subFolder
page1.qml
page2.qml
main.qml imports functions.js and subFolder to get access to all my javascript functions and the objects in page1 and page2. main.qml uses a StackView to load the pages as necessary.
page1 & page2 also import functions.js.
My question is... How can I access objects in page1 & page2 from my javascript? I have tried using 'property alias page1: page1' in my pages, which appears to be seen from functions.js...but at runtime is undefined.
So... How can I access objects in page1 and page2 from my javascript?
Bookmarks