OverviewFelgo 2 Support (Qt 5) › V-play live "ReferenceError: is not defined" problem


Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #20807



    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?



    Felgo Team


    the Live Client supports to preview QML files, which are parsed at runtime. C++ code requires to be compiled with your app and is thus not available with the default Felgo Live app.

    To test your C++ additions on mobile, you can manually build and deploy your app for iOS or Android, as described in our deployment guide:

    It is also possible to build a custom Live Client that also includes your custom Qt C++ code. For this, you can turn your own app project into a Live Client. You can find a guide how to do this here: Live Code Reloading with Custom C++ and Native Code for Qt. After performing these steps, you can build and deploy your own live client for your app, which you can use instead of the preview app from the stores.


Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support