QWebEngineRegisterProtocolHandlerRequest Class
The QWebEngineRegisterProtocolHandlerRequest class enables accepting or rejecting requests from the registerProtocolHandler API. More...
Header: | #include <QWebEngineRegisterProtocolHandlerRequest> |
Since: | Qt 5.11 |
Instantiated By: | RegisterProtocolHandlerRequest |
Properties
Public Functions
void | accept() |
QUrl | origin() const |
void | reject() |
QString | scheme() const |
bool | operator!=(const QWebEngineRegisterProtocolHandlerRequest &that) const |
bool | operator==(const QWebEngineRegisterProtocolHandlerRequest &that) const |
Static Public Members
const QMetaObject | staticMetaObject |
Detailed Description
The QWebEngineRegisterProtocolHandlerRequest class enables accepting or rejecting requests from the registerProtocolHandler API.
See also QWebEnginePage::registerProtocolHandlerRequested.
Property Documentation
origin : const QUrl
This property holds the URL template for the protocol handler.
This is the second parameter from the registerProtocolHandler call.
Access functions:
QUrl | origin() const |
scheme : const QString
This property holds the URL scheme for the protocol handler.
This is the first parameter from the registerProtocolHandler call.
Access functions:
QString | scheme() const |
Member Function Documentation
void QWebEngineRegisterProtocolHandlerRequest::accept()
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.
void QWebEngineRegisterProtocolHandlerRequest::reject()
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.
bool QWebEngineRegisterProtocolHandlerRequest::operator!=(const QWebEngineRegisterProtocolHandlerRequest &that) const
Returns true
if that points to a different object than this request.
bool QWebEngineRegisterProtocolHandlerRequest::operator==(const QWebEngineRegisterProtocolHandlerRequest &that) const
Returns true
if that points to the same object as this request.
© 2019 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.