Forums

OverviewV-Play 2 Support (Qt 5) › Live code reloading with custom C and native code for Qt not working

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

    Jeff

    To reproduce:

    Following this article: https://v-play.net/updates/release-2-16-1-live-code-reloading-with-custom-c-and-native-code-for-qt

     

    I am using 2.18 on Arch Linux Manjaro so it should apply to this release.

     

    Using this Project: https://github.com/V-Play/VPlayCppQML-Example

     

    Making the changes that are commented out:

     

    In Main:

    #include <VPLiveClient>

    //  vplay.setMainQmlFileName(QStringLiteral(“qrc:/qml/Main.qml”));

    // engine.load(QUrl(vplay.mainQmlFileName()));

    VPlayLiveClient client (&engine);

     

    in pro file:

    CONFIG += v-play-live

     

    Not sure what they mean by disabling auto start; does that mean you do not use this Live Popup; and instead just hit run debug?

    If I hit run->Debug; it comes up with a Connecting box that does not connect, not even to a remote device.

     

    I get the error that com.yourcompany.xyz is not defined; but it complies fine. If I remove the code by toggling the comments and hit run debug; it works fine; so its not the app; but the Live emulator.

     

    I searched for this issue; only found pre 2.16 issues.

     

    This is a very important feature; please help me to resolve this issue.

     

    #20364

    Jeff

    Update: After getting this email from V-Play:

    after you build and run the project with the Live Client Module, your application stars with Live Client features. You can press “Connect” to connect it to the Live Server, and use it just like the default Live Client. It sounds as if you have mistaken your application as the new server instead of the new client after building. Cheers, Alex

    I was able to figure out that Live must first be present but not started, then you hit run->debug; the first time this will ask you to accept or deny the request to Live Client; after that it will connect; but you must click on Connect the first time; that was what tripped me up.

    Update: It would help others if you update your Documentation to make this point clear, if you know this its clear, looking back at it, it was not clear.

    Thanks works great.

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
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support