Auf dieser Seite

QWebEngineRegisterProtocolHandlerRequest Class

Die Klasse QWebEngineRegisterProtocolHandlerRequest ermöglicht das Annehmen oder Ablehnen von Anfragen der registerProtocolHandler API. Mehr...

Kopfzeile: #include <QWebEngineRegisterProtocolHandlerRequest>
CMake: find_package(Qt6 REQUIRED COMPONENTS WebEngineCore)
target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore)
qmake: QT += webenginecore
In QML: RegisterProtocolHandlerRequest

Eigenschaften

Öffentliche Funktionen

void accept()
QUrl origin() const
void reject()
QString scheme() const
bool operator!=(const QWebEngineRegisterProtocolHandlerRequest &that) const
bool operator==(const QWebEngineRegisterProtocolHandlerRequest &that) const

Ausführliche Beschreibung

Siehe auch QWebEnginePage::registerProtocolHandlerRequested().

Dokumentation der Eigenschaften

[read-only] origin : const QUrl

Diese Eigenschaft enthält die URL-Vorlage für den Protokoll-Handler.

Dies ist der zweite Parameter des registerProtocolHandler-Aufrufs.

Zugriffsfunktionen:

QUrl origin() const

[read-only] scheme : const QString

Diese Eigenschaft enthält das URL-Schema für den Protokoll-Handler.

Dies ist der erste Parameter des registerProtocolHandler-Aufrufs.

Zugriffsfunktionen:

QString scheme() const

Dokumentation der Mitgliedsfunktionen

[invokable] void QWebEngineRegisterProtocolHandlerRequest::accept()

Akzeptiert die Anfrage

Nachfolgende Aufrufe von accept() und reject() werden ignoriert.

Hinweis: Diese Funktion kann über das Meta-Objektsystem und von QML aus aufgerufen werden. Siehe Q_INVOKABLE.

[invokable] void QWebEngineRegisterProtocolHandlerRequest::reject()

Lehnt die Anfrage ab.

Nachfolgende Aufrufe von accept() und reject() werden ignoriert.

Hinweis: Diese Funktion kann über das Meta-Objektsystem und von QML aus aufgerufen werden. Siehe Q_INVOKABLE.

bool QWebEngineRegisterProtocolHandlerRequest::operator!=(const QWebEngineRegisterProtocolHandlerRequest &that) const

Gibt true zurück, wenn that auf ein anderes Objekt als diese Anfrage zeigt.

bool QWebEngineRegisterProtocolHandlerRequest::operator==(const QWebEngineRegisterProtocolHandlerRequest &that) const

Gibt true zurück, wenn that auf das gleiche Objekt wie diese Anfrage zeigt.

© 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.