RegisterProtocolHandlerRequest QML Type

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

import 語句: import QtWebEngine
Since: QtWebEngine 1.7
在 C++: QWebEngineRegisterProtocolHandlerRequest

特性

方法

詳細描述

另請參閱 WebEngineView::registerProtocolHandlerRequested ().

特性文檔編製

origin : url [read-only]

The URL template for the protocol handler.

This is the second parameter from the registerProtocolHandler 調用。

scheme : string [read-only]

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.