QWebEngineQuotaRequest 类

The QWebEngineQuotaRequest class enables accepting or rejecting requests for larger persistent storage than the application's current allocation in File System API. 更多...

头: #include <QWebEngineQuotaRequest>
Since: Qt 5.11
实例化: QuotaRequest

特性

公共函数

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

静态公共成员

const QMetaObject staticMetaObject

详细描述

The QWebEngineQuotaRequest class enables accepting or rejecting requests for larger persistent storage than the application's current allocation in File System API.

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 指向与此配额请求相同的对象。