tests/auto/declarative/qmlvisual/webview/javascript/windowObjects.qml
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
       
     1 import Qt 4.7
       
     2 import org.webkit 1.0
       
     3 
       
     4 Column {
       
     5     WebView {
       
     6         width: 200
       
     7         height: 200
       
     8         url: "test-objects.html"
       
     9         javaScriptWindowObjects:
       
    10             QtObject {
       
    11                 property string text: btntext.text
       
    12                 WebView.windowObjectName: "qmltext"
       
    13             }
       
    14     }
       
    15     Row {
       
    16         Text { text: "Input:" }
       
    17         Rectangle {
       
    18             width: btntext.width+10
       
    19             height: btntext.height+10
       
    20             border.color: "black"
       
    21             TextInput {
       
    22                 id: btntext
       
    23                 text: "Blah"
       
    24             }
       
    25         }
       
    26     }
       
    27 }