QWebPage::ErrorPageExtensionReturn Class Reference

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

#include <qwebpage.h>

Inheritance diagram for QWebPage::ErrorPageExtensionReturn:
Inheritance graph
[legend]
Collaboration diagram for QWebPage::ErrorPageExtensionReturn:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ErrorPageExtensionReturn ()

Public Attributes

QString contentType
QString encoding
QUrl baseUrl
QByteArray content

Detailed Description

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

Since:
4.6 QtWebKit

The 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 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::ErrorPageExtensionOption, QString::toUtf8()

Definition at line 287 of file qwebpage.h.


Constructor & Destructor Documentation

QWebPage::ErrorPageExtensionReturn::ErrorPageExtensionReturn (  )  [inline]

Constructs a new error page object.

Definition at line 289 of file qwebpage.h.


Member Data Documentation

Definition at line 292 of file qwebpage.h.

Definition at line 293 of file qwebpage.h.

Definition at line 289 of file qwebpage.h.

Definition at line 291 of file qwebpage.h.


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.2-20100208