IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

FullScreenRequest QML Type

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

This type was introduced in QtWebEngine 1.1.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

FullScreenRequest QML Type▲

Detailed Description▲

Property Documentation▲

 

[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.

See Also▲

See also accept()

Method Documentation▲

 

void accept()▲

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

 
Sélectionnez
ApplicationWindow {
    id: window
    WebEngineView {
        onFullScreenRequested: function(request) {
            if (request.toggleOn)
                window.showFullScreen()
            else
                window.showNormal()
            request.accept()
        }
    }
}
See Also▲

See also toggleOn

void reject()▲

Rejects a fullscreen request.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+