FullScreenRequest QML Type

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

import 語句: import QtWebEngine
Since: QtWebEngine 1.1
在 C++: QWebEngineFullScreenRequest

特性

方法

詳細描述

另請參閱 WebEngineView::fullScreenRequested ().

特性文檔編製

origin : url [read-only]

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

toggleOn : bool [read-only]

返迴 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.