A utility type for the WebEngineView::quotaRequested() 信號。 更多...
| import 語句: | import QtWebEngine 1.10 |
| Since: | QtWebEngine 1.7 |
| 實例化: | QWebEngineQuotaRequest |
另請參閱 WebEngineView::quotaRequested() .
|
[read-only] origin : url |
The URL of the web page that issued the quota request.
Contains the size of the requested disk space in bytes.
Accepts the quota request.
WebEngineView { onQuotaRequested: function(request) { if (request.requestedSize <= 5 * 1024 * 1024) request.accept(); else request.reject(); } }
Rejects the quota request.