RegisterProtocolHandlerRequest QML Type

RegisterProtocolHandlerRequest 类型可接受或拒绝来自registerProtocolHandlerAPI 的请求。更多

Import Statement: import QtWebEngine
Since: QtWebEngine 1.7
In C++: QWebEngineRegisterProtocolHandlerRequest

属性

方法

详细说明

另请参见 WebEngineView::registerProtocolHandlerRequested().

属性文档

origin : url [read-only]

协议处理程序的 URL 模板。

这是registerProtocolHandler调用的第二个参数。


scheme : string [read-only]

协议处理程序的 URL 方案。

这是registerProtocolHandler调用的第一个参数。


方法文档

void accept()

接受请求。

对 accept() 和reject() 的后续调用将被忽略。


void reject()

接受请求。

随后对accept() 和 reject() 的调用将被忽略。


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