WebBrowser/data/qml/thumbnailer.qml

branch
QtWebEngine
changeset 4868
985d275502c8
equal deleted inserted replaced
4865:4adc526bc4b3 4868:985d275502c8
1 import QtQuick 2.2
2 import QtWebEngine 1.0
3
4 WebEngineView {
5 width: 1920
6 height: 1080
7
8 onLoadingChanged: {
9 if (loadRequest.status == WebEngineView.LoadStartedStatus)
10 return;
11
12 var ok = loadRequest.status == WebEngineView.LoadSucceededStatus;
13 thumbnailer.createThumbnail(ok);
14 }
15 }

eric ide

mercurial