This repository has been archived on 2022-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
fanny-app/qml/WebsitePage.qml

53 lines
1.1 KiB
QML
Raw Normal View History

2018-06-21 16:41:02 +02:00
import QtQuick 2.9
import QtWebView 1.1
import QtQuick.Controls 2.2
import QtWebView 1.1
import QtQuick.Layouts 1.1
import QtQuick.Controls.Styles 1.2
Page {
id:root
anchors.fill: parent
objectName: "WebsitePage";
title: qsTr("Fanny Webseite")
ProgressBar {
id: progress
width: parent.width
anchors {
top: parent.top
}
//z: Qt.platform.os === "android" ? -1 : 1
visible: webView.loadProgress < 100
value: webView.loadProgress == 100 ? 0 : webView.loadProgress / 100
}
2018-06-28 01:20:35 +02:00
Button {
z: 1
anchors.top: parent.top
text:"\u21BA"
onClicked: webView.reload()
}
2018-06-21 16:41:02 +02:00
WebView {
id: webView
anchors {
top: webView.loadProgress < 100 ? progress.bottom:parent.top
bottom: parent.bottom
left: parent.left
right: parent.right
}
url: "http://www.fanny-leicht.de/j34"
onLoadingChanged: {
if (loadRequest.errorString)
console.error(loadRequest.errorString);
}
}
}