[WPE][Qt] loadingChanged signal parameter is unusable
[WebKit-https.git] / Tools / MiniBrowser / wpe / qt / main.qml
1 import QtQuick 2.11
2 import QtQuick.Window 2.11
3 import org.wpewebkit.qtwpe 1.0
4
5 Window {
6     id: main_window
7     visible: true
8     width: 1280
9     height: 720
10     title: qsTr("Hello WPE!")
11
12     WPEView {
13         url: initialUrl
14         focus: true
15         anchors.fill: parent
16         onTitleChanged: {
17             main_window.title = title;
18         }
19         onLoadingChanged: {
20             if (loadRequest.errorString)
21                 console.log('WPEView error: ' + loadRequest.errorString)
22         }
23     }
24 }