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:
Konstante | Wert | Beschreibung |
---|---|---|
QWebEngineLoadingInfo::NoErrorDomain | 0 | Fehlertyp ist nicht bekannt. |
QWebEngineLoadingInfo::InternalErrorDomain | 1 | Der Inhalt kann von Qt WebEngine nicht interpretiert werden. |
QWebEngineLoadingInfo::ConnectionErrorDomain | 2 | Fehler resultiert aus einer fehlerhaften Netzwerkverbindung. |
QWebEngineLoadingInfo::CertificateErrorDomain | 3 | Fehler steht im Zusammenhang mit dem SSL/TLS-Zertifikat. |
QWebEngineLoadingInfo::HttpErrorDomain | 4 | Der Fehler steht im Zusammenhang mit der HTTP-Verbindung. |
QWebEngineLoadingInfo::FtpErrorDomain | 5 | Der Fehler steht im Zusammenhang mit der FTP-Verbindung. |
QWebEngineLoadingInfo::DnsErrorDomain | 6 | Fehler steht im Zusammenhang mit der DNS-Verbindung. |
QWebEngineLoadingInfo::HttpStatusCodeDomain | 7 | Fehler 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:
Konstante | Wert | Beschreibung |
---|---|---|
QWebEngineLoadingInfo::LoadStartedStatus | 0 | Die Seite wird gerade geladen. |
QWebEngineLoadingInfo::LoadStoppedStatus | 1 | Das Laden der Seite wurde durch die stop()-Methode oder durch den Loader-Code oder den Netzwerk-Stack in Chromium gestoppt. |
QWebEngineLoadingInfo::LoadSucceededStatus | 2 | Die Seite wurde mit Erfolg geladen. |
QWebEngineLoadingInfo::LoadFailedStatus | 3 | Seite 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.