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 ().
构造新 URL 方案处理程序。
创建处理程序采用父级 parent .
删除自定义 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 .