QWebEngineNewWindowRequest Class

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

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

パブリックな型

enum DestinationType { InNewWindow, InNewTab, InNewDialog, InNewBackgroundTab }

プロパティ

パブリック機能

QWebEngineNewWindowRequest::DestinationType destination() const
bool isUserInitiated() const
void openIn(QWebEnginePage *page)
QRect requestedGeometry() const
QUrl requestedUrl() const

詳細説明

別のウェブエンジンビューでページをロードするリクエストに関する情報を保持します。

QWebEnginePage::newWindowRequested()も参照

メンバ型ドキュメント

enum QWebEngineNewWindowRequest::DestinationType

この列挙型は、要求されたウィンドウのタイプを記述する:

定数説明
QWebEngineNewWindowRequest::InNewWindow0別のウィンドウ
QWebEngineNewWindowRequest::InNewTab1同じウィンドウのタブ
QWebEngineNewWindowRequest::InNewDialog2タブバー、ツールバー、URLバーのないウィンドウ。
QWebEngineNewWindowRequest::InNewBackgroundTab3同じウィンドウのタブで、現在表示されているウェブ・エンジン・ビューを非表示にしない。

プロパティの説明

[read-only] destination : const DestinationType

このプロパティは、要求されたウィンドウのタイプを保持する。

アクセス関数:

QWebEngineNewWindowRequest::DestinationType destination() const

[read-only] requestedGeometry : const QRect

このプロパティは、新しいページに要求されるサイズを保持する。

アクセス関数:

QRect requestedGeometry() const

[read-only] requestedUrl : const QUrl

このプロパティは、新しいページに要求される URL を保持します。

アクセス関数です:

QUrl requestedUrl() const

[read-only] userInitiated : const bool

このページ要求がキーボードまたはマウスイベントの結果として直接トリガーされたかどうか。

このプロパティを使用して、自動ポップアップをブロックすることができます。

アクセス関数:

bool isUserInitiated() const

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

void QWebEngineNewWindowRequest::openIn(QWebEnginePage *page)

page で表されるビューで、要求されたウィンドウを開きます。

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

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