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

QuotaRequest QML Type

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

This type was introduced in QtWebEngine 1.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QuotaRequest QML Type▲

Detailed Description▲

 

See Also▲

Property Documentation▲

 

[read-only] origin : url▲

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

[read-only] requestedSize : qint64▲

Contains the size of the requested disk space in bytes.

Method Documentation▲

 

void accept()▲

Accepts the quota request.

 
Sélectionnez
WebEngineView {
    onQuotaRequested: function(request) {
        if (request.requestedSize <= 5 * 1024 * 1024)
            request.accept();
        else
            request.reject();
    }
}

void reject()▲

Rejects the quota request.

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