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