Quote Originally Posted by anda_skoa View Post
You haven't used any of the elements of that directory in the code you provided so far, so it is hard to tell what could be wrong.
Fair enough. To get where my UI is updated as detailed below, I was trying to pass the QML to my javascript function. So, I import the SubPages folder and pass the MainWin.qml to my javascript, but that results in the MainWin undefined error:

Qt Code:
  1. function gpsOneShotUpdate() {
  2. Funcs.gpsOneShotUpdate(MainWin)
  3. }
To copy to clipboard, switch view to plain text mode 

Quote Originally Posted by anda_skoa View Post
Ah, I remember now. You are trying to create an artifically complex situation. Any specific reason for that?
Not trying to complicate things...

This is for use on mobile devices... On startup, my app needs to get the users location (which is done via a gpsio.cpp function). Once that location is determined, the app needs to update the UI with that location. This initial location needs to be determined before the initial 'Main Window' is visible.

So... C++ gets location and sets main.qml variables. Then C++ calls main.qml function to update UI on SubPage qml. main.qml function in turn calls javascript function which does the real Text object updates on SubPage qml.