QWebPage.ErrorPageExtensionReturn

注意

该类在 Qt4.6 引入

详细描述

ErrorPageExtensionReturn describes the error page, which will be shown for the frame for which the error occured.

ErrorPageExtensionReturn class holds the data needed for creating an error page. Some are optional such as contentType , which defaults to “text/html”, as well as the encoding , which is assumed to be UTF-8 if not indicated otherwise.

The error page is stored in the content byte array, as HTML content. In order to convert a PySide.QtCore.QString to a byte array, the QString.toUtf8() method can be used.

External objects such as stylesheets or images referenced in the HTML are located relative to baseUrl .

另请参阅

QWebPage.extension() QWebPage.ErrorPageExtensionOption QString.toUtf8()

class PySide.QtWebKit.QWebPage. ErrorPageExtensionReturn
class PySide.QtWebKit.QWebPage. ErrorPageExtensionReturn ( ErrorPageExtensionReturn )
参数: ErrorPageExtensionReturn PySide.QtWebKit.QWebPage::ErrorPageExtensionReturn

Constructs a new error page object.

PySide.QtWebKit.QWebPage.ErrorPageExtensionReturn. baseUrl
PySide.QtWebKit.QWebPage.ErrorPageExtensionReturn. contentType
PySide.QtWebKit.QWebPage.ErrorPageExtensionReturn. encoding
PySide.QtWebKit.QWebPage.ErrorPageExtensionReturn. content