Then I'm importing import g1.backend.main 1.0 from the qml file but I'm not able to call the MySigleton class. Do I need to register singleton or import differently?
This is the error:
<Unknown File>: qmlRegisterSingletonType(): "MySingleton" is not available because the callback function returns a null pointer.