QuotaRequest QML Type

A utility type for the WebEngineView::quotaRequested() 信号。 更多...

导入语句: 导入 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.


[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.