Falkon Develop
Cross-platform Qt-based web browser
thumbnailer.qml
Go to the documentation of this file.
1import QtQuick 2.2
2import QtWebEngine 1.0
4WebEngineView {
5 id: view
6 width: 1280
7 height: 720
8
9 onLoadingChanged: function(loadingInfo) {
10 if (loadingInfo.status == WebEngineView.LoadStartedStatus)
11 return;
12
13 var ok = loadingInfo.status == WebEngineView.LoadSucceededStatus;
14 view.runJavaScript(thumbnailer.afterLoadScript(), function() {
15 thumbnailer.createThumbnail(ok);
16 });
17 }
18}