WebEngineNewWindowRequest QML Type

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

Import Statement: import QtWebEngine
Since: QtWebEngine 1.12
In C++: QWebEngineNewWindowRequest

プロパティ

方法

詳細説明

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

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

プロパティ ドキュメント

DestinationType : enumeration

新しいビューを開く方法を説明します:

定数説明
WebEngineNewWindowRequest.InNewWindow別のウィンドウで。
WebEngineNewWindowRequest.InNewTab同じウィンドウのタブ
WebEngineNewWindowRequest.InNewDialogタブバー、ツールバー、URLバーのないウィンドウで。
WebEngineNewWindowRequest.InNewBackgroundTab同じウィンドウのタブで、現在表示されているウェブエンジンのビューを非表示にしないでください。

destination : WebEngineNewWindowRequest::DestinationType [read-only]

要求されるウィンドウのタイプ


requestedGeometry : QRect [read-only, since QtWebEngine 2.0]

新しいページに要求されるサイズ。

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


requestedUrl : QUrl [read-only, since QtWebEngine 1.5]

新しいページに要求される URL。

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


userInitiated : bool [read-only]

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

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


メソッドの説明

openIn(WebEngineView view)

要求されたページを新しいウェブエンジンビューview で開きます。ビューの状態と履歴、およびその中にロードされた可能性のあるページは失われます。

WebEngineView::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.