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 } |
속성
- destination : const DestinationType
- requestedGeometry : const QRect
- requestedUrl : const QUrl
- userInitiated : const bool
공공 기능
QWebEngineNewWindowRequest::DestinationType | destination() const |
bool | isUserInitiated() const |
void | openIn(QWebEnginePage *page) |
QRect | requestedGeometry() const |
QUrl | requestedUrl() const |
QWebEnginePage::newWindowRequested()도 참조하세요 .
멤버 유형 문서
enum QWebEngineNewWindowRequest::DestinationType
이 열거형은 요청된 창 유형을 설명합니다:
상수 | 값 | 설명 |
---|---|---|
QWebEngineNewWindowRequest::InNewWindow | 0 | 별도의 창에서. |
QWebEngineNewWindowRequest::InNewTab | 1 | 같은 창의 탭에서. |
QWebEngineNewWindowRequest::InNewDialog | 2 | 탭 표시줄, 도구 모음 또는 URL 표시줄이 없는 창에서. |
QWebEngineNewWindowRequest::InNewBackgroundTab | 3 | 현재 표시된 웹 엔진 보기를 숨기지 않고 같은 창의 탭에서. |
속성 문서
[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.