QWebEngineLoadingInfo#

A utility type for the loadingChanged signal. More

Synopsis#

Properties#

  • errorCode - Holds the error code

  • errorDomain

  • errorString - Holds the error message

  • isErrorPage - Indicates if the load resulted in an error page

  • responseHeaders - Holds the response headers when QWebEngineLoadingInfo::status() is equal to QWebEngineLoadingInfo::LoadSucceededStatus or QWebEngineLoadingInfo::LoadFailedStatus

  • status - Load status of the page

  • url - Holds the URL of the load request

Functions#

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 PySide6.QtWebEngineCore.QWebEngineLoadingInfo(other)#
Parameters:

otherPySide6.QtWebEngineCore.QWebEngineLoadingInfo

Note

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

property PᅟySide6.QtWebEngineCore.QWebEngineLoadingInfo.errorCode: int#

This property Holds the error code..

Access functions:
property PᅟySide6.QtWebEngineCore.QWebEngineLoadingInfo.errorDomain: ErrorDomain#
Access functions:
property PᅟySide6.QtWebEngineCore.QWebEngineLoadingInfo.errorString: str#

This property Holds the error message..

Access functions:
property PᅟySide6.QtWebEngineCore.QWebEngineLoadingInfo.isErrorPage: bool#

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

Access functions:
property PᅟySide6.QtWebEngineCore.QWebEngineLoadingInfo.responseHeaders: QMultiMapQByteArray,QByteArray#

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

Access functions:
property PᅟySide6.QtWebEngineCore.QWebEngineLoadingInfo.status: LoadStatus#

This property holds The load status of the page..

Access functions:
property PᅟySide6.QtWebEngineCore.QWebEngineLoadingInfo.url: PySide6.QtCore.QUrl#

This property Holds the URL of the load request..

Access functions:
PySide6.QtWebEngineCore.QWebEngineLoadingInfo.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.

PySide6.QtWebEngineCore.QWebEngineLoadingInfo.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.

PySide6.QtWebEngineCore.QWebEngineLoadingInfo.errorCode()#
Return type:

int

Getter of property errorCode .

PySide6.QtWebEngineCore.QWebEngineLoadingInfo.errorDomain()#
Return type:

ErrorDomain

Getter of property errorDomain .

PySide6.QtWebEngineCore.QWebEngineLoadingInfo.errorString()#
Return type:

str

Getter of property errorString .

PySide6.QtWebEngineCore.QWebEngineLoadingInfo.isErrorPage()#
Return type:

bool

Getter of property isErrorPage .

PySide6.QtWebEngineCore.QWebEngineLoadingInfo.responseHeaders()#
Return type:

.QMultiMapQByteArray,QByteArray

Getter of property responseHeaders .

PySide6.QtWebEngineCore.QWebEngineLoadingInfo.status()#
Return type:

LoadStatus

Getter of property status .

PySide6.QtWebEngineCore.QWebEngineLoadingInfo.url()#
Return type:

PySide6.QtCore.QUrl

Returns the URL of the load request.

Getter of property url .