I've just recently started playing around with the QtWebEngine that runs on Chromium. I created a very simple QML project to just load a webpage. What I'm noticing is that the QtWebEngine (using WebEngineView) is extremely slow at loading sites. A coule google searches shows I'm not alone.
I'm using Window 7 with VS 2013, Qt 5.4.0 and also tried Qt 5.5.0 beta with the same results. For those interested here is my source code.
main.qml
import QtQuick 2.1
import QtQuick.Controls 1.1
import QtQuick.Layouts 1.1
import QtWebEngine 1.0
ApplicationWindow {
width: 1280
height: 720
visible: true
ColumnLayout {
anchors.fill: parent
TextField {
id: addressBar
focus: true
Layout.fillWidth: true
text: webView.url
onAccepted: webView.url = text
}
WebEngineView {
id: webview
url: "www.google.com"
Layout.fillWidth: true
Layout.fillHeight: true
}
}
}
import QtQuick 2.1
import QtQuick.Controls 1.1
import QtQuick.Layouts 1.1
import QtWebEngine 1.0
ApplicationWindow {
width: 1280
height: 720
visible: true
ColumnLayout {
anchors.fill: parent
TextField {
id: addressBar
focus: true
Layout.fillWidth: true
text: webView.url
onAccepted: webView.url = text
}
WebEngineView {
id: webview
url: "www.google.com"
Layout.fillWidth: true
Layout.fillHeight: true
}
}
}
To copy to clipboard, switch view to plain text mode
main.cpp
#include <QtGui/QGuiApplication>
#include <QtQml/QQmlApplicationEngine>
#include <QtWebEngine/qtwebengineglobal.h>
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QtWebEngine::initialize();
QQmlApplicationEngine appEngine;
appEngine.
load(QUrl("main.qml"));
return app.exec();
}
#include <QtGui/QGuiApplication>
#include <QtQml/QQmlApplicationEngine>
#include <QtWebEngine/qtwebengineglobal.h>
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QtWebEngine::initialize();
QQmlApplicationEngine appEngine;
appEngine.load(QUrl("main.qml"));
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Does anybody else use this QML item. Do you see this same issue?
Bookmarks