I try to expose an object as a global property to Java Script which has the method below:
Q_INVOKABLE MyObject* createMyObject();
MyObject is derived from QObject.
when I call this method in Java Script it returns an object of type:
QVariant(MyObject*)
I'm wondering if it's possible to automatically convert it to QJSValue so I can use it further in the script?