A utility type for the QWebEnginePage::newWindowRequested() signal. More...
| Header: | #include <QWebEngineNewWindowRequest> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WebEngineCore)target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore) |
| qmake: | QT += webenginecore |
| Since: | Qt 6.2 |
| In QML: | WebEngineNewWindowRequest |
| Inherits: | QObject |
| enum | DestinationType { InNewWindow, InNewTab, InNewDialog, InNewBackgroundTab } |
| QWebEngineNewWindowRequest::DestinationType | destination() const |
| bool | isUserInitiated() const |
| void | openIn(QWebEnginePage *page) |
| QRect | requestedGeometry() const |
| QUrl | requestedUrl() const |
Contains information about a request to load a page in a separate web engine view.
See also QWebEnginePage::newWindowRequested().
This enum describes the type of window requested:
| Constant | Value | Description |
|---|---|---|
QWebEngineNewWindowRequest::InNewWindow |
0 |
In a separate window. |
QWebEngineNewWindowRequest::InNewTab |
1 |
In a tab of the same window. |
QWebEngineNewWindowRequest::InNewDialog |
2 |
In a window without a tab bar, toolbar, or URL bar. |
QWebEngineNewWindowRequest::InNewBackgroundTab |
3 |
In a tab of the same window, without hiding the currently visible web engine view. |
[read-only] destination : const DestinationTypeThis property holds the type of window that is requested.
Access functions:
| QWebEngineNewWindowRequest::DestinationType | destination() const |
[read-only] requestedGeometry : const QRectThis property holds the size that is requested for the new page.
Access functions:
| QRect | requestedGeometry() const |
[read-only] requestedUrl : const QUrlThis property holds the URL that is requested for the new page.
Access functions:
| QUrl | requestedUrl() const |
[read-only] userInitiated : const boolWhether this page request was directly triggered as the result of a keyboard or mouse event.
You can use this property to block automatic popups.
Access functions:
| bool | isUserInitiated() const |
Opens the requested window in the view represented by page.
See also QWebEnginePage::newWindowRequested.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: