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.