PySide6.QtWebEngineCore.QWebEngineFullScreenRequest¶
- class QWebEngineFullScreenRequest¶
- The - QWebEngineFullScreenRequestclass enables accepting or rejecting requests for entering and exiting the fullscreen mode.- Details- To allow elements such as videos to be shown in the fullscreen mode, applications must set - FullScreenSupportEnabledand connect to- fullScreenRequested, which takes a- QWebEngineFullScreenRequestinstance as an argument.- If an element of a web page requests to be shown in the fullscreen mode, - fullScreenRequestedwill be emitted with an- QWebEngineFullScreenRequestinstance as an argument where- toggleOn()returns- true. The signal handler needs to then either call- accept()or- reject().- 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 - fullScreenRequestedwill be emitted when the user wants to leave the full screen mode (that is, through the- ExitFullScreencontext menu action). In this case,- toggleOn()will return- false, and the signal handler again needs to- accept()or- reject()the request. If it is accepted, the applicaton needs to make sure that the global window state is restored.- Synopsis¶- Properties¶- Methods¶- def - __init__()
- def - accept()
- def - origin()
- def - reject()
- def - toggleOn()
 - 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 - Note - Properties can be used directly when - from __feature__ import true_propertyis used or via accessor functions otherwise.- This property holds The URL to be opened in the fullscreen mode.. - Access functions:
 - property toggleOnᅟ: bool¶
 - This property holds Whether the web page has issued a request to enter fullscreen mode.. - Access functions:
 - __init__()¶
 - __init__(other)
- Parameters:
- other – - QWebEngineFullScreenRequest
 
 - accept()¶
 - Accepts the request to enter or exit the fullscreen mode. - Returns the URL to be opened in the fullscreen mode. - Getter of property - originᅟ.- reject()¶
 - Rejects a request to enter or exit the fullscreen mode. - toggleOn()¶
- Return type:
- bool 
 
 - Returns - trueif the web page has issued a request to enter the fullscreen mode, otherwise returns- false.- Getter of property - toggleOnᅟ.