WebEngineFullScreenRequest QML Type

A utility type for the WebEngineView::fullScreenRequested() signal. 更多...

Import Statement: import QtWebEngine 1.5
开始支持版本: QtWebEngine 1.1

属性

方法

详细描述

参见 WebEngineView::fullScreenRequested().

属性

[read-only] origin : url

The URL of the web page that issued the fullscreen request.


[read-only] toggleOn : bool

Returns true if the application should toggle fullscreen mode on, false otherwise.

参见 accept().


成员

void accept()

Call this method to accept the fullscreen request. It sets the WebEngineView::isFullScreen property to be equal to toggleOn.


  ApplicationWindow {
      id: window
      WebEngineView {
          onFullScreenRequested: function(request) {
              if (request.toggleOn)
                  window.showFullScreen()
              else
                  window.showNormal()
              request.accept()
          }
      }
  }

参见 toggleOn.


void reject()

Rejects a fullscreen request.