QML WebView counter-part for C++/Qt Widgets? (i.e. use native browser)
-
Hi,
You can use the QQuickWidget to embed your QNL code.
-
Lifetime Qt Championwrote on 3 Feb 2018, 22:05 last edited by SGaist 2 May 2018, 20:53
Just in case, QtWebView has support for native browser API where it's available, otherwise it uses QtWebEngine where possible.
-
Just in case, QtWebView has support for native browser API where it's available, otherwise it uses QtWebEngine where possible.
wrote on 5 Feb 2018, 20:51 last edited by@SGaist said in QML WebView counter-part for C++/Qt Widgets? (i.e. use native browser):
QWebView has support for native browser API where it's available
QWebView seems completely removed in Qt 5.10.
-
No, the QtWebView module is very much alive.
-
No, the QtWebView module is very much alive.
-
For macOS it depends.
For Windows, unless it's WinRT, no, it uses QtWebEngine. AFAIK, Windows as no system web view.
-
For macOS it depends.
For Windows, unless it's WinRT, no, it uses QtWebEngine. AFAIK, Windows as no system web view.
-
QWebView is a class from either QtWebKit or the QtWebView module. Which one do you mean exactly ?
-
Btw, I meant QWebView (C++ Qt Widgets component) not QtWebView (QML component) - is this still available (and supported)? And is this the thin wrapper on top of platform browsers on desktop?
Hi
Do you mean the one from WebKIT ?
http://doc.qt.io/archives/qt-4.8/qwebview.html#details
WebKit has been removed but still alive from external party.
https://forum.qt.io/topic/76739/webkit-status-2017 -
wrote on 5 Feb 2018, 22:26 last edited by zura 2 May 2018, 22:28
To get to the original question - I'm interested if there is a web view component in Qt (preferable on C++/Widgets side) that uses native browsers for each desktop platform (Mac and Win at the moment, not winrt) - so there is no need to bundle webkit or chromium.
wxWidgets has wxWebView: http://docs.wxwidgets.org/3.0/classwx_web_view.html
-
Hi
Not as far as i know.
You can use the MS ActiveX if you want (MSHTML)
http://doc.qt.io/qt-5/activeqt-activeqt-webbrowser-example.html
and other techs on the other platforms.
11/12