Unsolved Using both QtWebKit and QtWebEngine in one app
-
Hi there! Currently our app uses only QtWebKit for some tasks, but QtWebKit is too old and therefore we decided to migrate to QtWebEngine. In the future, we'll completely migrate to QtWebEngine, but now some parts of our app still requires QtWebKit. So, the question is: is it possible to use both QtWebKit and QtWebEngine in one application, will there be any conflicts with this? Thanks in advance.
-
@popov895
I believe the answer is "no problem". Certainly I have code which allows for either at runtime, though to be fair it only uses one or the other not both.Although I too have moved from WebKit to WebEngine, it's only fair to point out that there is an on-going project which has maintained WebKit all through Qt 5 if you would prefer that...
-
@popov895 said in Using both QtWebKit and QtWebEngine in one app:
Hi there! Currently our app uses only QtWebKit for some tasks, but QtWebKit is too old and therefore we decided to migrate to QtWebEngine.
Did you try QtWebKit 5.212?
-
@Konstantin-Tokarev said in Using both QtWebKit and QtWebEngine in one app:
Did you try QtWebKit 5.212?
Yes, but It's buggy and very slow. Also woff fonts (we are using Material Icons font) aren't supported well.
-
There are no known bugs with WOFF fonts
-
@Konstantin-Tokarev QWebView ignores font-style and font-weight in the @font-face, and therefore Material icons are displayed as italic.
-
Do you have sample URL?
-
@Konstantin-Tokarev Here is a simple html sample:
<html> <head> <title>Test</title> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> </head> <body> <i class="material-icons">face</i> </body> </html>
You can load it into QWebView and see that the icon is displayed as italic.