Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › WebView Support in Felgo Live

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17620

    Arne

    Hi,

    I am using Qt 5.9 and Felgo 2.14.1 on mac os sierra 10.12.6. Also I installed every Qt/Felgo module and latest update for ios and android with the maintenance tool.

    When I compile for android with a cable connected android phone, everything works fine.

    But if I compile with the new Felgo Live it ends with an error on desktop and mobile either:

    QQmlComponent: Component is not ready
    /Users/arnegockeln/Library/Application Support/Felgo Live Client/qml/Main.qml:28: Type ArticlePage unavailable
    /Users/arnegockeln/Library/Application Support/Felgo Live Client/qml/pages/ArticlePage.qml:3: module "QtWebView" is not installed

     

    My .pro file starts like this:

    # allows to add DEPLOYMENTFOLDERS and links to the Felgo library and QtCreator auto-completion
    CONFIG += v-play
    
    QT += webview

     

    In main.cpp I use this:

    #include <QApplication>
    #include <VPApplication>
    #include <QQmlApplicationEngine>
    #include <QtWebView>
    
    int main(int argc, char *argv[])
    {
        QApplication app(argc, argv);
        QtWebView::initialize();
    
        VPApplication vplay;
        // Use platform-specific fonts instead of Felgo's default font
        vplay.setPreservePlatformFonts(true);
    
        QQmlApplicationEngine engine;
        vplay.initialize(&engine);
    
        // use this during development
        // for PUBLISHING, use the entry point below
        vplay.setMainQmlFileName(QStringLiteral("qml/Main.qml"));
    
        // use this instead of the above call to avoid deployment of the qml files and compile them into the binary with qt's resource system qrc
        // this is the preferred deployment option for publishing games to the app stores, because then your qml files and js files are protected
        // to avoid deployment of your qml files and images, also comment the DEPLOYMENTFOLDERS command in the .pro file
        // also see the .pro file for more details
        // vplay.setMainQmlFileName(QStringLiteral("qrc:/qml/Main.qml"));
    
        engine.load(QUrl(vplay.mainQmlFileName()));
    
        return app.exec();
    }
    

     

    The imports of my ArticlePage.qml looks like this:

    import Felgo 3.0
    import QtQuick 2.0
    import QtWebView 1.1
    import "../util"
    import "../../assets/backend.js" as Backend
    import "../R24"
    

     

    So, I can’t find any information about the availability in the docs. Is the QtWebView not yet supported in Felgo Live?

    Thanks for your support.

    Best, Arne

    #17622

    Alex
    Felgo Team

    Hi Arne,

    thank you very much for the detailed report. You are right, we are not supporting QtWebView with Felgo Live at the moment. If you just comment those parts in your code, you will be able to use the benefit of Felgo Live for your remaining application.

    We decided against including this module with out default Felgo Live clients for now. We will soon release a guide how you can add live-reload capabilities to your own app with just a few lines of code. Then you will be able to build your own Live Clients, that contain all your modules and C++ code. Stay tuned!

    Cheers,
    Alex

    #17623

    Arne

    Hi Alex,

    thanks for the quick reply. I am looking forward to that feature to build our own live clients :). However, this release of the v-play live thing will save us a lot of compile and testing time. Well done!

    Best,

    Arne

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

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded