A utility type for the WebEngineView::quotaRequested() signal. More...
Import Statement: | import QtWebEngine |
Since: | QtWebEngine 1.7 |
Instantiates: | QWebEngineQuotaRequest |
See also 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.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qml-qtwebengine-quotarequest.html