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?
I was talking about exposing the C++ values to QML.
Not necessary at all, that is what property bindings are for.
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,
_







Reply With Quote

Bookmarks