I got this weird problem, I made everything like in this example:
and everything works when I connect trough deskop – I can acces to cpp object from:
Data* dataClass = new Data(); engine.rootContext()->setContextProperty("dataObj", dataClass);
and everything is working, but while connecting on the phone, the output is: ReferenceError: dataObj is not defined
It’s weird because I guess this should work on every device, right?