CopperSpice API  1.9.2
QWebPage::ErrorPageExtensionReturn Class Reference

Defines the page which will be shown in a frame where an error occurred. More...

Inheritance diagram for QWebPage::ErrorPageExtensionReturn:
QWebPage::ExtensionReturn

Public Methods

 ErrorPageExtensionReturn ()
 

Detailed Description

The QWebPage::ErrorPageExtensionReturn Defines the page which will be shown in a frame where an error occurred. This 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 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.

See also
QWebPage::extension(), QWebPage::ErrorPageExtensionOption, QString8::toUtf8()

Constructor & Destructor Documentation

QWebPage::ErrorPageExtensionReturn::ErrorPageExtensionReturn ( )
inline

Constructs a new error page object.