aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlvisual/webview/javascript/windowObjects.qml
blob: 0b78539cda161cc20d237a5ee636dcce944f2231 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import QtQuick 1.0
import QtWebKit 1.0

Column {
    property string skip: "WebView tests not counting until resources allocated to WebView maintenance"
    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"
            }
        }
    }
}