FullScreenRequest QML Type

A utility type for the WebEngineView::fullScreenRequested() 信号。 更多...

import 语句: import QtWebEngine
Since: QtWebEngine 1.1
实例化: QWebEngineFullScreenRequest

特性

方法

详细描述

另请参阅 WebEngineView::fullScreenRequested() .

特性文档编制

[read-only] origin : url

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

[read-only] toggleOn : bool

返回 true if the application should toggle fullscreen mode on, false 否则。

另请参阅 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.