July 23, 2012

Ashish Mittal Ashish Mittal
Ant Farmer
151 posts

How to suppress javascript error/warning popup message window

 

I am using QWebKit to display the HTML pages which has some java scripts also.
Sometime I am getting javascript error/warning pop up message window, I just wanted to suppress them, so that user will not get notified about these.
Please suggest a way to do this.

Regards
Ashish

1 reply

July 23, 2012

Arnold Konrad Arnold Konrad
Ant Farmer
36 posts

You can subclass QWebPage and reimplement the javaScriptAlert() method to suppress the message boxes triggered by alert().

 
  ‹‹ QWaitCondition: Destroyed while threads are still waiting      Plugins paths on Windows ››

You must log in to post a reply. Not a member yet? Register here!