Quote Originally Posted by scgrant327 View Post
Yes! I guess?
Then you need to pass the id of the instance or the name of the property holding the instance.
In C++ you would also pass the name of the variable that hold the pointer to the object, not the class name, right?

Quote Originally Posted by scgrant327 View Post
I am already exposing the necessary variables from main.qml to C++, so the gpsio function can update them as needed.
I was talking about exposing the C++ values to QML.

Quote Originally Posted by scgrant327 View Post
...and 100% necessary. In the end, there will be a gpsio function that continuously updates the QML UI with new values.
Not necessary at all, that is what property bindings are for.

Quote Originally Posted by scgrant327 View Post
The return value is not necessary. It is left over from me just trying to get everything to work....and copy/pasting code from online examples. The return value can and will be deleted.
I see.

Then it is really unnecessary to call a JavaScript function from C++. Getting a return value is basically the only use case for that.

Cheers,
_