From 1e1bde036abd27c18c73add12ecd9517540b1e8f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Mat=C4=9Bj=C3=A1k?= Date: Fri, 27 Apr 2018 17:40:02 +0200 Subject: [PATCH] textfield added --- main.qml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/main.qml b/main.qml index 9f5dadc..754b329 100644 --- a/main.qml +++ b/main.qml @@ -65,6 +65,7 @@ Window { anchors.right: parent.right RowLayout { + anchors.fill: parent ToolButton { text: qsTr("←") @@ -78,20 +79,23 @@ Window { enabled: webView.canGoForward } + TextField { + id: urlText + Layout.fillWidth: true + selectByMouse: true + onEditingFinished: webView.url = urlText.text + } + ToolButton { text: qsTr("↻") onClicked: webView.reload() } - - Label { - id: urlText - } } } WebEngineView { id: webView - url: "https://google.cz/" + url: "http://localhost/" anchors.left: parent.left anchors.top: toolBar.bottom anchors.right: parent.right -- 2.39.2