Unsolved How can i access to WebViewLoadRequest in C++?
-
Dear Guys
I want to connect Quick Controls 2 WebView WebViewLoadRequest signal in C++ Slot.
In this signal we have one argument with type of WebViewLoadRequest . So, how can i define this type in C++ slot as input?void MyClass::OnUrlChanged(const ???? &)
thanks
-
@Advanced I doubt it could be possible to access
WebViewLoadRequest
in C++ as there is no public API for it.
As far asurlChanged
is concerned it returns aQUrl
so that should be possible as usual.QUrl
will be the parameter. -
@Advanced, Hi
You need
QQuickWebViewLoadRequest
from QtWebView/private/qquickwebviewloadrequest_p.h.
This type is registred in qtwebview/src/imports/webview.cpp.If I'm not mistaken it should be at webview-private.