このページでは

WebEngineNewWindowRequest QML Type

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

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

プロパティ

方法

  • void openIn(WebEngineView view)

詳細説明

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

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

プロパティ ドキュメント

DestinationType : enumeration

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

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

destination : WebEngineNewWindowRequest::DestinationType [read-only]

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

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

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

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

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

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

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

userInitiated : bool [read-only]

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

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

メソッドのドキュメント

void openIn(WebEngineView view)

リクエストされたページを新しいウェブエンジン・ビューview で開きます。ビューの状態や履歴、ロードされたページは失われます。

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

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