diff options
Diffstat (limited to 'WebkitSlide.qml')
-rw-r--r-- | WebkitSlide.qml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/WebkitSlide.qml b/WebkitSlide.qml new file mode 100644 index 0000000..a049f98 --- /dev/null +++ b/WebkitSlide.qml @@ -0,0 +1,39 @@ +import QtQuick 2.0 +import QtWebKit 3.0 +import Qt.labs.presentation 1.0 + +Slide { + id: slide + + title: "Qt WebKit - WebView Element" + + WebView { + id: browser + anchors.fill: parent + url: textInput.text + + layer.enabled: true + } + + Rectangle { + border.width: 2 + border.color: "black" + opacity: 0.5 + color: "black" + anchors.fill: textInput + anchors.margins: -textInput.height * 0.2; + + radius: -anchors.margins + antialiasing: true + } + + TextInput { + id: textInput + anchors.top: browser.bottom; + anchors.horizontalCenter: browser.horizontalCenter + font.pixelSize: slide.baseFontSize; + text: "http://www.google.com" + onAccepted: browser.reload(); + color: "white" + } +} |