Auf dieser Seite

fullScreenRequest QML Value Type

Ein Hilfstyp für das Signal WebEngineView::fullScreenRequested(). Mehr...

Import Statement: import QtWebEngine
Since: QtWebEngine 1.1
In C++: QWebEngineFullScreenRequest

Eigenschaften

Methoden

Ausführliche Beschreibung

Siehe auch WebEngineView::fullScreenRequested().

Dokumentation der Eigenschaft

origin : url [read-only]

Die URL der Webseite, von der die Vollbildanforderung stammt.

toggleOn : bool [read-only]

Gibt true zurück, wenn die Anwendung den Vollbildmodus einschalten soll, andernfalls false.

Siehe auch accept().

Dokumentation der Methode

void accept()

Rufen Sie diese Methode auf, um die Vollbildanforderung zu akzeptieren. Sie setzt die Eigenschaft WebEngineView::isFullScreen auf den Wert toggleOn.

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

Siehe auch toggleOn.

void reject()

Lehnt eine Vollbildanforderung ab.

© 2026 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.