QWebEngineUrlSchemeHandler 类

The QWebEngineUrlSchemeHandler is a base class for handling custom URL schemes. 更多...

头: #include <QWebEngineUrlSchemeHandler>
Since: Qt 5.6
继承: QObject

公共函数

QWebEngineUrlSchemeHandler (QObject * parent = Q_NULLPTR)
~QWebEngineUrlSchemeHandler ()
virtual void requestStarted (QWebEngineUrlRequestJob * request ) = 0

额外继承成员

详细描述

The QWebEngineUrlSchemeHandler is a base class for handling custom URL schemes.

要实现自定义 URL 方案为 QtWebEngine , you must write a class derived from this class, and reimplement requestStarted (). Then install it via QWebEngineProfile::installUrlSchemeHandler () 或 QQuickWebEngineProfile::installUrlSchemeHandler ().

成员函数文档编制

QWebEngineUrlSchemeHandler:: QWebEngineUrlSchemeHandler ( QObject * parent = Q_NULLPTR)

构造新 URL 方案处理程序。

创建处理程序采用父级 parent .

QWebEngineUrlSchemeHandler:: ~QWebEngineUrlSchemeHandler ()

删除自定义 URL 方案处理程序。

[pure virtual] void QWebEngineUrlSchemeHandler:: requestStarted ( QWebEngineUrlRequestJob * request )

This method is called whenever a request request for the registered scheme is started.

This method must be reimplemented by all custom URL scheme handlers. The request is asynchronous and does not need to be handled right away.

另请参阅 QWebEngineUrlRequestJob .