A utility type for the WebEngineView::quotaRequested() 信号。 更多...
import 语句: | import QtWebEngine |
Since: | QtWebEngine 1.7 |
实例化: | QWebEngineQuotaRequest |
另请参阅 WebEngineView::quotaRequested() .
[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.
void accept () |
Accepts the quota request.
WebEngineView { onQuotaRequested: function(request) { if (request.requestedSize <= 5 * 1024 * 1024) request.accept(); else request.reject(); } }
void reject () |
Rejects the quota request.