import QtQuick.Window 2.0
import QtWebEngine 1.0
import QtQuick.VirtualKeyboard 2.1
+import QtQuick.Controls 2.2
+import QtQuick.Layouts 1.3
Window {
- width: 1920
- height: 1200
visible: true
- WebEngineView {
- anchors.fill: parent
- url: "http://google.cz/"
+ ToolBar {
+ id: toolBar
+ anchors.left: parent.left
+ anchors.top: parent.top
+ anchors.right: parent.right
+
+ RowLayout {
+
+ ToolButton {
+ text: qsTr("<")
+ onClicked: webView.goBack()
+ anchors.left: parent.left
+ }
+
+ ToolButton {
+ text: qsTr(">")
+ onClicked: webView.goForward()
+ }
+
+ ToolButton {
+ text: qsTr("↻")
+ onClicked: webView.reload()
+ }
+
+ Label {
+ id: urlText
+ text: ""
+ }
+ }
}
- Item {
- id: appContainer
+ WebEngineView {
+ id: webView
+ url: "https://google.cz/"
anchors.left: parent.left
- anchors.top: parent.top
+ anchors.top: toolBar.bottom
anchors.right: parent.right
anchors.bottom: inputPanel.top
+ onUrlChanged: urlText.text = webView.url
}
InputPanel {