RegisterProtocolHandlerRequest QML Type

The RegisterProtocolHandlerRequest type enables accepting or rejecting requests from the registerProtocolHandler API. 更多...

import 语句: import QtWebEngine
Since: QtWebEngine 1.7
实例化: QWebEngineRegisterProtocolHandlerRequest

特性

方法

详细描述

另请参阅 WebEngineView::registerProtocolHandlerRequested() .

特性文档编制

origin : url

The URL template for the protocol handler.

This is the second parameter from the registerProtocolHandler 调用。

scheme : string

The URL scheme for the protocol handler.

This is the first parameter from the registerProtocolHandler 调用。


方法文档编制

void accept ()

Accepts the request.

Subsequent calls to accept() and reject() 被忽略。

void reject ()

Accepts the request.

Subsequent calls to accept() and reject() are ignored.