QWebEngineNavigationRequest Class

QWebEnginePage::navigationRequested シグナルのユーティリティ型。詳細...

ヘッダー #include <QWebEngineNavigationRequest>
CMake: find_package(Qt6 REQUIRED COMPONENTS WebEngineCore)
target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore)
qmake: QT += webenginecore
以来:Qt 6.2
QML で WebEngineNavigationRequest
継承: QObject

プロパティ

パブリック機能

void accept()
bool hasFormData() const
bool isMainFrame() const
QWebEngineNavigationRequest::NavigationType navigationType() const
void reject()
QUrl url() const

シグナル

void actionChanged()

詳細説明

ナビゲーション・リクエストに関する情報を含む。

要求を受け入れるか拒否するかは、accept ()またはreject ()を呼び出す。

処理されない場合のデフォルトは、ナビゲーションを受け入れることである。

QWebEnginePage::navigationRequestedも参照してください

プロパティのドキュメント

[read-only, since 6.8] hasFormData : const bool

このプロパティは、ナビゲーション リクエストにフォーム データが含まれているかどうかを保持します。

このプロパティは Qt 6.8 で導入されました。

アクセス関数です:

bool hasFormData() const

[read-only] isMainFrame : const bool

このプロパティは、ナビゲーション・イシューが最上位ページに対して要求されているかどうかを保持する。

アクセス関数:

bool isMainFrame() const

このプロパティは、Web ページへの移動に使用されるメソッドを保持します。

アクセス関数:

QWebEngineNavigationRequest::NavigationType navigationType() const

[read-only] url : const QUrl

このプロパティは、移動するウェブページの URL を保持します。

アクセス関数

QUrl url() const

メンバー関数ドキュメント

[invokable] void QWebEngineNavigationRequest::accept()

ナビゲーションのリクエストを受け付ける。

注意: この関数はメタオブジェクトシステムやQMLから呼び出すことができます。Q_INVOKABLE を参照してください。

[invokable] void QWebEngineNavigationRequest::reject()

ナビゲーションリクエストを拒否する。

注意: この関数はメタオブジェクトシステムやQMLから呼び出すことができます。Q_INVOKABLE を参照してください。

© 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.