import QtQuick.Window 2.0
import QtWebEngine 1.0
import QtQuick.VirtualKeyboard 2.1
+import QtQuick.Controls 2.3
+import QtQuick.Layouts 1.3
Window {
width: 1920
height: 1200
visible: true
- WebEngineView {
- id: appContainer
- 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()
+ }
+
+ TextField {
+ id: urlText
+ text: ""
+ }
+
+ ToolButton {
+ text: qsTr("Reload")
+ onClicked: webView.reload()
+ }
+
+ ToolButton {
+ text: qsTr("Enter")
+ onClicked: webView.url = urlText.text
+ }
+ }
+ }
+
+ WebEngineView {
+ id: webView
+ url: "https://google.cz/"
+ anchors.left: parent.left
+ anchors.top: toolBar.bottom
+ anchors.right: parent.right
anchors.bottom: inputPanel.top
+ onUrlChanged: urlText.text = webView.url
}
InputPanel {
anchors.right: parent.right
}
}
+