QWebEngineRegisterProtocolHandlerRequest Class
QWebEngineRegisterProtocolHandlerRequest クラスは、registerProtocolHandlerAPI からのリクエストの受け入れまたは拒否を可能にします。詳細...
| ヘッダー | #include <QWebEngineRegisterProtocolHandlerRequest> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WebEngineCore)target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore) |
| qmake | QT += webenginecore |
| QMLで: | RegisterProtocolHandlerRequest |
プロパティ一覧
パブリック機能
| void | accept() |
| QUrl | origin() const |
| void | reject() |
| QString | scheme() const |
| bool | operator!=(const QWebEngineRegisterProtocolHandlerRequest &that) const |
| bool | operator==(const QWebEngineRegisterProtocolHandlerRequest &that) const |
QWebEnginePage::registerProtocolHandlerRequested()も参照 。
プロパティの説明
[read-only] origin : const QUrl
このプロパティは、プロトコルハンドラのURLテンプレートを保持する。
これは、registerProtocolHandler呼び出しの2番目のパラメータです。
アクセス関数です:
| QUrl | origin() const |
[read-only] scheme : const QString
このプロパティは、プロトコルハンドラのURLスキームを保持する。
これは、registerProtocolHandler呼び出しの最初のパラメータです。
アクセス関数
| QString | scheme() const |
メンバー関数ドキュメント
[invokable] void QWebEngineRegisterProtocolHandlerRequest::accept()
リクエストを受け付ける
それ以降の accept() およびreject() の呼び出しは無視される。
注意: この関数はメタオブジェクトシステムやQMLから呼び出すことができます。Q_INVOKABLE を参照してください。
[invokable] void QWebEngineRegisterProtocolHandlerRequest::reject()
リクエストを拒否する。
それ以降のaccept() や reject() の呼び出しは無視される。
注意: この関数はメタオブジェクトシステムやQMLから呼び出すことができます。Q_INVOKABLE を参照してください。
bool QWebEngineRegisterProtocolHandlerRequest::operator!=(const QWebEngineRegisterProtocolHandlerRequest &that) const
that がこのリクエストとは異なるオブジェクトを指している場合はtrue を返す。
bool QWebEngineRegisterProtocolHandlerRequest::operator==(const QWebEngineRegisterProtocolHandlerRequest &that) const
that がこのリクエストと同じオブジェクトを指している場合はtrue を返す。
© 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.