Qt World Summit: Register Today!

DOMWindow within a QWebFrame

  • Is it possible to get the DOM Window root object within a QWebFrame? (the equivalent global 'window' object or document.defaultView in javascript [webkit])
    Accessing through the document with this->page()->mainFrame()->documentElement() and then using it with the javascript bridge ownerDocument.defaultView returns an empty DOMWindow object, and this->page()->mainFrame()->evaluateJavaScript("document.defaultView;"); returns a static representation of the window, but not directly linked to the DOMWindow (like documentElement() does with a QWebElement).
    Is there some workaround for a "QWebElement windowElement() const" ?

Log in to reply