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.