import QtQuick.Layouts 1.3
Window {
- width: 1920
- height: 1200
visible: true
ToolBar {
anchors.right: parent.right
RowLayout {
+ anchors.fill: parent
ToolButton {
- text: qsTr("<")
+ text: qsTr("←")
onClicked: webView.goBack()
- anchors.left: parent.left
+ enabled: webView.canGoBack
}
ToolButton {
- text: qsTr(">")
+ text: qsTr("→")
onClicked: webView.goForward()
+ enabled: webView.canGoForward
}
TextField {
id: urlText
- text: ""
+ Layout.fillWidth: true
+ selectByMouse: true
+ onEditingFinished: webView.url = urlText.text
}
ToolButton {
- text: qsTr("Reload")
+ text: qsTr("↻")
onClicked: webView.reload()
}
-
- ToolButton {
- text: qsTr("Enter")
- onClicked: webView.url = urlText.text
- }
}
}
WebEngineView {
id: webView
- url: "https://google.cz/"
+ url: "http://localhost/"
anchors.left: parent.left
anchors.top: toolBar.bottom
anchors.right: parent.right
anchors.right: parent.right
}
}
-