add method to set the attribute of or off with the QWebPage