Using both QtWebKit and QtWebEngine in one app
-
wrote on 12 Apr 2018, 15:19 last edited by
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.
-
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.
wrote on 12 Apr 2018, 15:39 last edited by@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...
-
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.
wrote on 12 Apr 2018, 18:17 last edited by@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?
-
@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?
wrote on 13 Apr 2018, 09:28 last edited by popov895@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.
-
@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.
wrote on 13 Apr 2018, 12:57 last edited byThere are no known bugs with WOFF fonts
-
There are no known bugs with WOFF fonts
wrote on 13 Apr 2018, 16:13 last edited by@Konstantin-Tokarev QWebView ignores font-style and font-weight in the @font-face, and therefore Material icons are displayed as italic.
-
@Konstantin-Tokarev QWebView ignores font-style and font-weight in the @font-face, and therefore Material icons are displayed as italic.
wrote on 13 Apr 2018, 17:14 last edited byDo you have sample URL?
-
Do you have sample URL?
wrote on 13 Apr 2018, 21:27 last edited by@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.
1/8