In QT 4.6 w/ Webkit: How to handle popup window requests (WebView::createWindow)?

Posted by CM on Stack Overflow See other posts from Stack Overflow or by CM
Published on 2010-05-02T22:10:31Z Indexed on 2010/05/02 22:18 UTC
Read the original article Hit count: 175

Filed under:
|
|

Hi all,

I'm new to QT and have been trying to create a test browser. What I'm trying to do now is to handle js-based popup requests. After reading the QT documentation, I learned that I need to re-implement the QWebView::createWindow method to do just that.

Now I've re-implemented this method, but it seems to be not called when I try to click a link that triggers a popup window.

Can any one help me? Do I need to subclass both the WebView and WebPage classes? If so, how do I do that? I'm quite new to QT and I've done tons of searches and found nothing.

Thank you all in advance for any hint and advice!

© Stack Overflow or respective owner

Related posts about qt4

Related posts about webkit