QWebEngineQuotaRequest 类允许接受 (或拒绝) 请求,为比应用程序在文件系统 API 中当前分配的更大持久性存储。 更多...
头: | #include <QWebEngineQuotaRequest> |
CMake: |
find_package(Qt6 COMPONENTS WebEngineCore REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore) |
qmake: | QT += webenginecore |
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 |
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.
[read-only]
origin
: const
QUrl
This property holds the URL of the web page that issued the quota request.
访问函数:
QUrl | origin () const |
[read-only]
requestedSize
: const
qint64
Contains the size of the requested disk space in bytes.
访问函数:
qint64 | requestedSize () const |
[invokable]
void
QWebEngineQuotaRequest::
accept
()
接受更大持久性存储的请求。
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
[invokable]
void
QWebEngineQuotaRequest::
reject
()
拒绝更大持久性存储的请求。
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .
返回
true
if
that
指向与此请求不同的对象。
返回
true
if
that
指向与此配额请求相同的对象。