QWebEngineQuotaRequest 類

QWebEngineQuotaRequest 類允許接受 (或拒絕) 請求,為比應用程序在文件係統 API 中當前分配的更大持久性存儲。 更多...

頭: #include <QWebEngineQuotaRequest>
Since: Qt 5.11
實例化: QuotaRequest

該類在 Qt 5.11 引入。

特性

公共函數

void accept ()
QUrl origin () const
void reject ()
qint64 requestedSize () const
bool operator!= (const QWebEngineQuotaRequest & that ) const
bool operator== (const QWebEngineQuotaRequest & that ) const

詳細描述

This class is used by the QWebEnginePage::quotaRequested () 信號到 accept () 或 reject () a request for an increase in the persistent storage allocated to the application. The default quota is 0 bytes.

特性文檔編製

origin : const QUrl

This property holds the URL of the web page that issued the quota request.

訪問函數:

QUrl origin () const

requestedSize : const qint64

Contains the size of the requested disk space in bytes.

訪問函數:

qint64 requestedSize () const

成員函數文檔編製

void QWebEngineQuotaRequest:: accept ()

接受更大持久性存儲的請求。

注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .

void QWebEngineQuotaRequest:: reject ()

拒絕更大持久性存儲的請求。

注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .

bool QWebEngineQuotaRequest:: operator!= (const QWebEngineQuotaRequest & that ) const

返迴 true if that 指嚮與此請求不同的對象。

bool QWebEngineQuotaRequest:: operator== (const QWebEngineQuotaRequest & that ) const

返迴 true if that 指嚮與此配額請求相同的對象。