Different webviews on different platforms? QWebEngine?
-
Hello,
I have been working on a web browser in Qt that relies on QWebView to render the web pages. I have heard that Apple requires that you use their version of the web view on iOS devices. I am not sure if Google requires the same for Android. If I want to port my browser to iOS down the road, will I need to somehow insert the Apple webview?
I have heard talk of QWebEngine, I believe its supposed to replace QWebKit. Will the QWebEngineView be similar to QWebView in terms of slots or signals, or will I have to start my browser again from scratch?
Thank you!
-
Hi,
Yes both Apple and Google require to use their web view. You can use "QtWebView":https://qt.gitorious.org/qt/qtwebview/source/ on these platform however it doesn't offer all the functionalities of QtWebKit but might be enough for your use case.
-
To clarify:
- QWebView is a class that is part of the Qt WebKit module. It will be replaced by the QWebEngineView class.
- Qt WebView is a module that provides native Android/iOS WebView.
- Qt WebEngine is a desktop-only module, like Qt WebKit.
[quote author="nicky j" date="1417734759"]Will the QWebEngineView be similar to QWebView in terms of slots or signals, or will I have to start my browser again from scratch?[/quote]The "porting guide":http://doc.qt.io/qt-5/qtwebenginewidgets-qtwebkitportingguide.html should answer your questions.