En esta página

QWebEngineRegisterProtocolHandlerRequest Class

La clase QWebEngineRegisterProtocolHandlerRequest permite aceptar o rechazar solicitudes del API registerProtocolHandler. Más...

Cabecera: #include <QWebEngineRegisterProtocolHandlerRequest>
CMake: find_package(Qt6 REQUIRED COMPONENTS WebEngineCore)
target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore)
qmake: QT += webenginecore
En QML: registerProtocolHandlerRequest

Propiedades

Funciones públicas

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

Descripción detallada

Véase también QWebEnginePage::registerProtocolHandlerRequested().

Documentación de propiedades

[read-only] origin : const QUrl

Esta propiedad contiene la plantilla URL para el manejador de protocolo.

Es el segundo parámetro de la llamada registerProtocolHandler.

Funciones de acceso:

QUrl origin() const

[read-only] scheme : const QString

Esta propiedad contiene el esquema URL para el manejador de protocolo.

Es el primer parámetro de la llamada registerProtocolHandler.

Funciones de acceso:

QString scheme() const

Documentación de funciones miembro

[invokable] void QWebEngineRegisterProtocolHandlerRequest::accept()

Acepta la solicitud

Las llamadas posteriores a accept() y reject() se ignoran.

Nota: Esta función puede invocarse a través del sistema de metaobjetos y desde QML. Véase Q_INVOKABLE.

[invokable] void QWebEngineRegisterProtocolHandlerRequest::reject()

Rechaza la solicitud.

Las llamadas posteriores a accept() y reject() se ignoran.

Nota: Esta función puede invocarse a través del sistema de metaobjetos y desde QML. Véase Q_INVOKABLE.

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

Devuelve true si that apunta a un objeto diferente de esta solicitud.

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

Devuelve true si that apunta al mismo objeto que esta solicitud.

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