summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/visual/webview/javascript/windowObjects.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/visual/webview/javascript/windowObjects.qml')
-rw-r--r--tests/auto/declarative/visual/webview/javascript/windowObjects.qml26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/auto/declarative/visual/webview/javascript/windowObjects.qml b/tests/auto/declarative/visual/webview/javascript/windowObjects.qml
new file mode 100644
index 0000000..a41de9a
--- /dev/null
+++ b/tests/auto/declarative/visual/webview/javascript/windowObjects.qml
@@ -0,0 +1,26 @@
+import Qt 4.6
+
+Column {
+ WebView {
+ width: 200
+ height: 200
+ url: "test-objects.html"
+ javaScriptWindowObjects:
+ QtObject {
+ property string text: btntext.text
+ WebView.windowObjectName: "qmltext"
+ }
+ }
+ Row {
+ Text { text: "Input:" }
+ Rectangle {
+ width: btntext.width+10
+ height: btntext.height+10
+ border.color: "black"
+ TextInput {
+ id: btntext
+ text: "Blah"
+ }
+ }
+ }
+}