QuotaRequest QML Type
A utility type for the WebEngineView::quotaRequested() signal. More...
Import Statement: | import QtWebEngine 1.10 |
Since: | QtWebEngine 1.7 |
Instantiates: | QWebEngineQuotaRequest |
Properties
- origin : url
- requestedSize : qint64
Methods
Detailed Description
See also WebEngineView::quotaRequested().
Property Documentation
[read-only] origin : url |
The URL of the web page that issued the quota request.
Method Documentation
Accepts the quota request.
WebEngineView { onQuotaRequested: function(request) { if (request.requestedSize <= 5 * 1024 * 1024) request.accept(); else request.reject(); } }