The ErrorPageExtensionReturn describes the error page, which will be shown for the frame for which the error occured. More...
#include <QWebPage>
This class was introduced in Qt 4.6.
ErrorPageExtensionReturn () |
QUrl | baseUrl |
QByteArray | content |
QString | contentType |
QString | encoding |
The ErrorPageExtensionReturn describes the error page, which will be shown for the frame for which the error occured.
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::extension(), QWebPage::ErrorPageExtensionOption, and QString::toUtf8().
Constructs a new error page object.
This variable holds the base url.
External objects such as stylesheets or images referenced in the HTML are located relative to this url.
This variable holds the HTML content of the error page.
This variable holds the error page's content type.
This variable holds the error page encoding.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.