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 .
This property holds the URL template for the protocol handler.
This is the second parameter from the registerProtocolHandler 調用。
訪問函數:
| QUrl | origin () const |
This property holds the URL scheme for the protocol handler.
This is the first parameter from the registerProtocolHandler 調用。
訪問函數:
| QString | scheme () const |
Accepts the request
Subsequent calls to accept() and reject () 被忽略。
注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .
Rejects the request.
Subsequent calls to accept () and reject() are ignored.
注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .
返迴
true
if
that
指嚮與此請求不同的對象。
返迴
true
if
that
points to the same object as this request.