[Qt-interest] webkit - how to prevent alert popups
KIMURA, Hidetaka
kimura at jig.jp
Fri Sep 17 08:26:31 CEST 2010
Hi Richard,
You don't need to modify the HTML. You can inherit QWebPage and override
QWebPage::javaScriptAlert to prevent the popups. Then set the page using
QWebView::setPage.
class MyWebPage : public QWebPage {
protected:
virtual void javaScriptAlert (QWebFrame*, const QString &) {}
};
webView.setPage(new MyWebPage());
-------
KIMURA, Hide - kimura at jig.jp
More information about the Qt-interest-old
mailing list