QWebEngineFullScreenRequest¶
The
QWebEngineFullScreenRequest
class enables accepting or rejecting requests for entering and exiting the fullscreen mode. More…
Synopsis¶
Functions¶
Detailed Description¶
To allow elements such as videos to be shown in the fullscreen mode, applications must set
FullScreenSupportEnabled
and connect tofullScreenRequested
, which takes aQWebEngineFullScreenRequest
instance as an argument.If an element of a web page requests to be shown in the fullscreen mode,
fullScreenRequested
will be emitted with anQWebEngineFullScreenRequest
instance as an argument wheretoggleOn()
returnstrue
. The signal handler needs to then either callaccept()
orreject()
.If the request to enter the fullscreen mode is accepted, the element requesting fullscreen mode will fill the viewport, but it is up to the application to make the view fullscreen or to move the page to a view that is in the fullscreen mode.
Likewise, a
fullScreenRequested
will be emitted when the user wants to leave the full screen mode (that is, through theExitFullScreen
context menu action). In this case,toggleOn()
will returnfalse
, and the signal handler again needs toaccept()
orreject()
the request. If it is accepted, the applicaton needs to make sure that the global window state is restored.
- class PySide2.QtWebEngineWidgets.QWebEngineFullScreenRequest¶
- PySide2.QtWebEngineWidgets.QWebEngineFullScreenRequest.accept()¶
Accepts the request to enter or exit the fullscreen mode.
- PySide2.QtWebEngineWidgets.QWebEngineFullScreenRequest.origin()¶
- Return type:
This property holds The URL to be opened in the fullscreen mode..
- PySide2.QtWebEngineWidgets.QWebEngineFullScreenRequest.reject()¶
Rejects a request to enter or exit the fullscreen mode.
- PySide2.QtWebEngineWidgets.QWebEngineFullScreenRequest.toggleOn()¶
- Return type:
bool
This property holds Whether the web page has issued a request to enter fullscreen mode..
© 2022 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.