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