title: QtWebKit: Failed to addToJavaScriptWindowObject when two QWebView binding to one obj
body: <p>I have two <code>QWebView</code> instances(<code>webView1</code> and <code>webView2</code>), both of them have a same statement like this:</p>
  
  <pre><code>webView-&gt;page()-&gt;mainFrame()-&gt;addToJavaScriptWindowObject("JSCallable", parent);
  </code></pre>
  
  <p>which <code>parent</code> refers to a same instance that have public slots for JS to invoke(i.e. both <code>webView1</code> and <code>webView2</code> will call <strong>the same method of the  same instance</strong>), and I <em>do</em> call this statement whenever the webView(<code>webView1</code> and <code>webView2</code>) load a new URL;</p>
  
  <hr>
  
  <p>Now the problem is: <em>only one</em> webView can call the method of <code>parent</code> successfully while the other cannot.</p>
  
  <p>I wonder whether it is <strong>possible</strong> to binding two webView to one obj for the purpose that the JavaScript in different pages can call a same method of a <code>QObject</code>.</p>
  
  <p>Any one would help? I will thank you in advance.</p>
  
  <hr>
  
  <p>Qt 4.8.4 / VS2010 with Windows 7 </p>