QWebEngineLoadingInfo Class

Ein Hilfstyp für das Signal WebEngineView::loadingChanged. Mehr...

Kopfzeile: #include <QWebEngineLoadingInfo>
CMake: find_package(Qt6 REQUIRED COMPONENTS WebEngineCore)
target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore)
qmake: QT += webenginecore
Seit: Qt 6.2
In QML: WebEngineLoadingInfo

Öffentliche Typen

enum ErrorDomain { NoErrorDomain, InternalErrorDomain, ConnectionErrorDomain, CertificateErrorDomain, HttpErrorDomain, …, HttpStatusCodeDomain }
enum LoadStatus { LoadStartedStatus, LoadStoppedStatus, LoadSucceededStatus, LoadFailedStatus }

Eigenschaften

Öffentliche Funktionen

int errorCode() const
QWebEngineLoadingInfo::ErrorDomain errorDomain() const
QString errorString() const
bool isErrorPage() const
QMultiMap<QByteArray, QByteArray> responseHeaders() const
QWebEngineLoadingInfo::LoadStatus status() const
QUrl url() const

Detaillierte Beschreibung

Enthält Informationen über die Änderung des Ladestatus einer Webseite, wie die URL und den aktuellen Ladestatus (gestartet, erfolgreich, gestoppt, fehlgeschlagen).

Siehe auch QWebEnginePage::loadStarted, QWebEnginePage::loadFinished, und WebEngineView::loadingChanged.

Dokumentation der Mitgliedstypen

enum QWebEngineLoadingInfo::ErrorDomain

Diese Aufzählung enthält den Typ eines Ladefehlers:

KonstanteWertBeschreibung
QWebEngineLoadingInfo::NoErrorDomain0Fehlertyp ist nicht bekannt.
QWebEngineLoadingInfo::InternalErrorDomain1Der Inhalt kann von Qt WebEngine nicht interpretiert werden.
QWebEngineLoadingInfo::ConnectionErrorDomain2Fehler resultiert aus einer fehlerhaften Netzwerkverbindung.
QWebEngineLoadingInfo::CertificateErrorDomain3Fehler steht im Zusammenhang mit dem SSL/TLS-Zertifikat.
QWebEngineLoadingInfo::HttpErrorDomain4Der Fehler steht im Zusammenhang mit der HTTP-Verbindung.
QWebEngineLoadingInfo::FtpErrorDomain5Der Fehler steht im Zusammenhang mit der FTP-Verbindung.
QWebEngineLoadingInfo::DnsErrorDomain6Fehler steht im Zusammenhang mit der DNS-Verbindung.
QWebEngineLoadingInfo::HttpStatusCodeDomain7Fehler ist der Statuscode der HTTP-Antwort, auch im Erfolgsfall, z. B. wenn der Server mit Status 200 geantwortet hat.

enum QWebEngineLoadingInfo::LoadStatus

Diese Aufzählung stellt den Ladestatus einer Webseiten-Ladeanfrage dar:

KonstanteWertBeschreibung
QWebEngineLoadingInfo::LoadStartedStatus0Die Seite wird gerade geladen.
QWebEngineLoadingInfo::LoadStoppedStatus1Das Laden der Seite wurde durch die stop()-Methode oder durch den Loader-Code oder den Netzwerk-Stack in Chromium gestoppt.
QWebEngineLoadingInfo::LoadSucceededStatus2Die Seite wurde mit Erfolg geladen.
QWebEngineLoadingInfo::LoadFailedStatus3Seite konnte nicht geladen werden.

Eigenschaft Dokumentation

[read-only] errorCode : const int

Enthält den Fehlercode.

Zugriffsfunktionen:

int errorCode() const

[read-only] errorString : const QString

Enthält die Fehlermeldung.

Zugriffsfunktionen:

QString errorString() const

[read-only] isErrorPage : const bool

Zeigt an, ob der Ladevorgang zu einer Fehlerseite geführt hat.

Zugriffsfunktionen:

bool isErrorPage() const

[read-only, since 6.6] responseHeaders : const QMultiMap<QByteArray,QByteArray>

Hält die Antwort-Header, wenn QWebEngineLoadingInfo::status() gleich QWebEngineLoadingInfo::LoadSucceededStatus oder QWebEngineLoadingInfo::LoadFailedStatus ist.

Diese Eigenschaft wurde in Qt 6.6 eingeführt.

Zugriffsfunktionen:

QMultiMap<QByteArray, QByteArray> responseHeaders() const

[read-only] status : const LoadStatus

Diese Eigenschaft enthält den Ladestatus der Seite.

Zugriffsfunktionen:

QWebEngineLoadingInfo::LoadStatus status() const

[read-only] url : const QUrl

Enthält die URL der Ladeanfrage.

Zugriffsfunktionen:

QUrl url() const

Dokumentation der Mitgliedsfunktionen

QUrl QWebEngineLoadingInfo::url() const

Gibt die URL der Ladeanfrage zurück.

Hinweis: Getter-Funktion für die Eigenschaft url.

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.