QWebEngineNewWindowRequest#
A utility type for the newWindowRequested()
signal. More…
Synopsis#
Properties#
destination
- Type of window that is requestedrequestedGeometry
- Size that is requested for the new pagerequestedUrl
- URL that is requested for the new page
Functions#
def
destination
()def
isUserInitiated
()def
openIn
(arg__1)def
requestedGeometry
()def
requestedUrl
()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
Contains information about a request to load a page in a separate web engine view.
See also
- class PySide6.QtWebEngineCore.QWebEngineNewWindowRequest#
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.QtWebEngineCore.QWebEngineNewWindowRequest.destination: DestinationType#
This property holds The type of window that is requested..
- Access functions:
destination
()
- property PᅟySide6.QtWebEngineCore.QWebEngineNewWindowRequest.requestedGeometry: PySide6.QtCore.QRect#
This property holds The size that is requested for the new page..
- Access functions:
- property PᅟySide6.QtWebEngineCore.QWebEngineNewWindowRequest.requestedUrl: PySide6.QtCore.QUrl#
This property holds The URL that is requested for the new page..
- Access functions:
requestedUrl
()
- property PᅟySide6.QtWebEngineCore.QWebEngineNewWindowRequest.userInitiated: bool#
Whether 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:
- PySide6.QtWebEngineCore.QWebEngineNewWindowRequest.DestinationType#
This enum describes the type of window requested:
Constant
Description
QWebEngineNewWindowRequest.InNewWindow
In a separate window.
QWebEngineNewWindowRequest.InNewTab
In a tab of the same window.
QWebEngineNewWindowRequest.InNewDialog
In a window without a tab bar, toolbar, or URL bar.
QWebEngineNewWindowRequest.InNewBackgroundTab
In a tab of the same window, without hiding the currently visible web engine view.
- PySide6.QtWebEngineCore.QWebEngineNewWindowRequest.destination()#
- Return type:
Getter of property destination
.
- PySide6.QtWebEngineCore.QWebEngineNewWindowRequest.isUserInitiated()#
- Return type:
bool
Getter of property userInitiated
.
- PySide6.QtWebEngineCore.QWebEngineNewWindowRequest.openIn(arg__1)#
- Parameters:
Opens the requested window in the view represented by page
.
See also
- PySide6.QtWebEngineCore.QWebEngineNewWindowRequest.requestedGeometry()#
- Return type:
Getter of property requestedGeometry
.
- PySide6.QtWebEngineCore.QWebEngineNewWindowRequest.requestedUrl()#
- Return type:
Getter of property requestedUrl
.