webnineview v.s. webview
-
Hi,
We have a very simple QT program which just loads a web page and most of time the local webpage.
QWebView *view; //use qtWebkit
or
/WebEngineView *view; //use qtWebengineview = new QWebView(this); view->load(url); setCentralWidget(view);
or
view = new QWebengineView(this); view->load(url); setCentralWidget(view);
where the uurl=http://localhost:80
This simple browser program works for years (from Qt5.5 to QT5.9)
The one based on qtWebkit still works at QT5.11.3, but the one based on qtWebengine stops working such that there is no page displayed.
The qtwebengine-based full browser example such as simple browser and qtwebbrowser still works although both of them requires some security- related dialog "Proceed with Caution" for the local page. I wonder whether the problem is related to some kind of security enhancement per Chromium.
Any suggestions will be highly appreciated!
Best regards,
Eric
-
@Eric-Ruei
QWebengineView
has a bunch ofloadStarted
/Progress
/Finished
signals. See if they are telling you anything?
MaybeQWebEngineView::load(const QWebEngineHttpRequest &request)
overload would allow you to examine any request/response issues?