QWebEngineRegisterProtocolHandlerRequest 類

QWebEngineRegisterProtocolHandlerRequest 類使能夠接受或拒絕請求,來自 registerProtocolHandler API. 更多...

頭: #include <QWebEngineRegisterProtocolHandlerRequest>
Since: Qt 5.11
實例化: RegisterProtocolHandlerRequest

該類在 Qt 5.11 引入。

特性

公共函數

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

詳細描述

另請參閱 QWebEnginePage::registerProtocolHandlerRequested .

特性文檔編製

origin : const QUrl

This property holds the URL template for the protocol handler.

This is the second parameter from the registerProtocolHandler 調用。

訪問函數:

QUrl origin () const

scheme : const QString

This property holds the URL scheme for the protocol handler.

This is the first parameter from the registerProtocolHandler 調用。

訪問函數:

QString scheme () const

成員函數文檔編製

void QWebEngineRegisterProtocolHandlerRequest:: accept ()

Accepts the request

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

注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .

void QWebEngineRegisterProtocolHandlerRequest:: reject ()

Rejects the request.

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

注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .

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

返迴 true if that 指嚮與此請求不同的對象。

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

返迴 true if that points to the same object as this request.