QuotaRequest QML Type

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

import 語句: import QtWebEngine 1.8
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.