class QWebEngineLoadingInfo

A utility type for the loadingChanged signal. More

Synopsis

Properties

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

Contains information about a web page loading status change, such as the URL and current loading status (started, succeeded, stopped, failed).

See also

loadStarted loadFinished loadingChanged

class LoadStatus

This enumeration represents the load status of a web page load request:

Constant

Description

QWebEngineLoadingInfo.LoadStartedStatus

Page is currently loading.

QWebEngineLoadingInfo.LoadStoppedStatus

Loading the page was stopped by the stop() method or by the loader code or network stack in Chromium.

QWebEngineLoadingInfo.LoadSucceededStatus

Page has been loaded with success.

QWebEngineLoadingInfo.LoadFailedStatus

Page could not be loaded.

class ErrorDomain

This enumeration holds the type of a load error:

Constant

Description

QWebEngineLoadingInfo.NoErrorDomain

Error type is not known.

QWebEngineLoadingInfo.InternalErrorDomain

Content cannot be interpreted by Qt WebEngine.

QWebEngineLoadingInfo.ConnectionErrorDomain

Error results from a faulty network connection.

QWebEngineLoadingInfo.CertificateErrorDomain

Error is related to the SSL/TLS certificate.

QWebEngineLoadingInfo.HttpErrorDomain

Error is related to the HTTP connection.

QWebEngineLoadingInfo.FtpErrorDomain

Error is related to the FTP connection.

QWebEngineLoadingInfo.DnsErrorDomain

Error is related to the DNS connection.

QWebEngineLoadingInfo.HttpStatusCodeDomain

Error is the HTTP response status code, even in case of success e.g. the server replied with status 200.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property errorCodeᅟ: int

This property Holds the error code..

Access functions:
property errorDomainᅟ: QWebEngineLoadingInfo.ErrorDomain
Access functions:
property errorStringᅟ: str

This property Holds the error message..

Access functions:
property isErrorPageᅟ: bool

This property holds Indicates if the load resulted in an error page..

Access functions:
property responseHeadersᅟ: QMultiMapQByteArray,QByteArray

This property Holds the response headers when QWebEngineLoadingInfo::status() is equal to QWebEngineLoadingInfo::LoadSucceededStatus or QWebEngineLoadingInfo::LoadFailedStatus..

Access functions:
property statusᅟ: QWebEngineLoadingInfo.LoadStatus

This property holds The load status of the page..

Access functions:
property urlᅟ: QUrl

This property Holds the URL of the load request..

Access functions:
__init__(other)
Parameters:

otherQWebEngineLoadingInfo

errorCode()
Return type:

int

Getter of property errorCodeᅟ .

errorDomain()
Return type:

ErrorDomain

Getter of property errorDomainᅟ .

errorString()
Return type:

str

Getter of property errorStringᅟ .

isErrorPage()
Return type:

bool

Getter of property isErrorPageᅟ .

responseHeaders()
Return type:

.QMultiMapQByteArray,QByteArray

Getter of property responseHeadersᅟ .

status()
Return type:

LoadStatus

Getter of property statusᅟ .

url()
Return type:

QUrl

Returns the URL of the load request.

Getter of property urlᅟ .