Home | History | Annotate | Download | only in resources
      1 import QtQuick 1.0
      2 import QtWebKit 1.0
      3 
      4 Item {
      5     width: 240
      6     height: 160
      7     Grid {
      8         anchors.fill: parent
      9         objectName: "newWindowParent"
     10         id: newWindowParent
     11     }
     12 
     13     Row {
     14         anchors.fill: parent
     15         id: oldWindowParent
     16         objectName: "oldWindowParent"
     17     }
     18 
     19     Loader {
     20         sourceComponent: webViewComponent
     21     }
     22     Component {
     23             id: webViewComponent
     24             WebView {
     25                 id: webView
     26                 objectName: "webView"
     27                 newWindowComponent: webViewComponent
     28                 newWindowParent: oldWindowParent         
     29                 url: "basic.html"
     30                 renderingEnabled: true
     31                 pressGrabTime: 200
     32             }
     33     }
     34 }
     35