WebEngineNewWindowRequest QML Type
Un tipo de utilidad para la señal WebEngineView::newWindowRequested. Más...
| Import Statement: | import QtWebEngine |
| Since: | QtWebEngine 1.12 |
| In C++: | QWebEngineNewWindowRequest |
Propiedades
- DestinationType : enumeration
- destination : WebEngineNewWindowRequest::DestinationType
- requestedGeometry : rect
(since QtWebEngine 2.0) - requestedUrl : url
(since QtWebEngine 1.5) - userInitiated : bool
Métodos
- void openIn(WebEngineView view)
Descripción detallada
Contiene información sobre una solicitud para cargar una página en una vista independiente del motor web.
Véase también WebEngineView::newWindowRequested.
Documentación de propiedades
DestinationType : enumeration
Describe cómo abrir una nueva vista:
| Constante | Descripción |
|---|---|
WebEngineNewWindowRequest.InNewWindow | En una ventana independiente. |
WebEngineNewWindowRequest.InNewTab | En una pestaña de la misma ventana. |
WebEngineNewWindowRequest.InNewDialog | En una ventana sin barra de pestañas, barra de herramientas o barra de URL. |
WebEngineNewWindowRequest.InNewBackgroundTab | En una pestaña de la misma ventana, sin ocultar la vista del motor web actualmente visible. |
destination : WebEngineNewWindowRequest::DestinationType [read-only]
El tipo de ventana que se solicita.
requestedGeometry : rect [read-only, since QtWebEngine 2.0]
El tamaño que se solicita para la nueva página.
Esta propiedad se introdujo en QtWebEngine 2.0.
requestedUrl : url [read-only, since QtWebEngine 1.5]
La URL que se solicita para la nueva página.
Esta propiedad se introdujo en QtWebEngine 1.5.
userInitiated : bool [read-only]
Si esta petición de ventana fue directamente lanzada como resultado de un evento de teclado o ratón.
Puede utilizar esta propiedad para bloquear las ventanas emergentes automáticas.
Documentación del método
void openIn(WebEngineView view)
Abre la página solicitada en la nueva vista del motor web view. Se perderán el estado y el historial de la vista y de la página posiblemente cargada en ella.
Véase también 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.