Forums

OverviewFelgo 2 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.

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