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 "Cannot assign to non-existent property 'url'"

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #21495

    Ginzo Milani

    I have installed every component on this computer, my *.pro has this

    QT += webview

    which I found from an older thread

    my main.cpp has this

    #include <QApplication>
    #include <FelgoApplication>
    
    #include <QQmlApplicationEngine>
    #include <QtWebView/QtWebView>
    
    
    
    int main(int argc, char *argv[])
    {
    
        QApplication app(argc, argv);
    
        FelgoApplication felgo;
        QQmlApplicationEngine engine;
        felgo.initialize(&engine);
        QtWebView::initialize();
        felgo.setMainQmlFileName(QStringLiteral("qrc:/qml/Main.qml"));
        engine.load(QUrl(felgo.mainQmlFileName()));
        return app.exec();
    }
    
    

    and finally my qml has this

     

    import QtWebView 1.1
        WebView {
          id: newsView
          visible: true
          anchors.fill: parent
          url: "https://www.google.com"
        }

    I get the following error:
    ‘Cannot assign to non-existent property “url” ‘

    removing the url works but I can’t set anything to it

    #21496

    Ginzo Milani

    Okay so compiling it to android actually WORKS..

     

    This makes it a problem with Felgo Live Client on Desktop 😐

    #21497

    Ginzo Milani

    Okay looks like it’s missing the plugin and dll entirely the Felgo Live Client, this seems like a quick issue to resolve if I had the dll

    #21498

    Ginzo Milani

    Taking the library from 2015_64/2017_64 yields “Cannot load library unknown error 0x000000c1”, 2015 version straight up doesn’t load.

     

    #21499

    Ginzo Milani
    #21507

    Alex
    Felgo Team

    Hi,

    the WebView type is not available with the default MinGW compiler on Windows at all. The Live Client is also compiled using MinGW. If you want tu use the WebView on Windows, you need to install one of the MSVC packages with the Maintenance Tool. You can then build your own Live Client using MSVC with the Live Client Module.

    We will try to make this more clear from the documentation.

    Cheers,
    Alex

Viewing 6 posts - 1 through 6 (of 6 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