The QWebEngineRegisterProtocolHandlerRequest class enables accepting or rejecting requests from the registerProtocolHandler API. More...
Header: | #include <QWebEngineRegisterProtocolHandlerRequest> |
Since: | Qt 5.11 |
Instantiated By: | RegisterProtocolHandlerRequest |
This class was introduced in Qt 5.11.
void | accept() |
QUrl | origin() const |
void | reject() |
QString | scheme() const |
bool | operator!=(const QWebEngineRegisterProtocolHandlerRequest &that) const |
bool | operator==(const QWebEngineRegisterProtocolHandlerRequest &that) const |
See also QWebEnginePage::registerProtocolHandlerRequested.
This property holds the URL template for the protocol handler.
This is the second parameter from the registerProtocolHandler call.
Access functions:
QUrl | origin() const |
This property holds the URL scheme for the protocol handler.
This is the first parameter from the registerProtocolHandler call.
Access functions:
QString | scheme() const |
Accepts the request
Subsequent calls to accept() and reject() are ignored.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Rejects the request.
Subsequent calls to accept() and reject() are ignored.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Returns true
if that points to a different object than this request.
Returns true
if that points to the same object as this request.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.15/qwebengineregisterprotocolhandlerrequest.html