Is there a summary of the rendering / behavior differences between QtWebKit and the Chrome / Safari WebKit browser?

I wrote a simple Qt application (Windows + Mac) that uses QtWebKit to render a website inside a window. But I already saw the differences in layout and behavior between our application and Chrome (which also uses WebKit), for example: - different fonts are displayed for the same web page - html anchor link with "javascript: someFunction ()" does not work

Is there somewhere a summary list of all such differences (not the entire list of QtWebKit errors)? Also: is there a way to use a version of WebKit more similar to Chrome in my application?

+4
source share
4 answers

WebKit requires that the drawing functions be provided by the platform. Chrome uses a different graphics / graphics library: skia and QtWebKit uses Qt as a drawing mechanism. They are

Both skia and qt provide their own widgets that are used in the drawing.

+3
source

Differences may arise from different paint systems. About javascript ... Just ask, but have you enabled JavaScript in your webkit app? I'm not sure if it is enabled by default

+2
source

Chrome uses its own JavaScript V8 engine, which has been much faster for some time. However, WebKit also implemented a very fast engine called SquirrelFish (and a variant of JIT'ed Extreme). Which one is faster discussed - I remembered that WebKit is faster, but the difference in millisecond order depends on many factors - in short, they are both just as fast.

+2
source

You can download the site http://html5test.com/ into your Qt WebView.

m_d->m_webView->setUrl(QUrl("http://html5test.com/")); 

* If you are using a sample HTML project from Qt Quick.

This page will give you a browser rating and a detailed list of supported features. You can also compare with other browsers, which is very useful.

0
source

Source: https://habr.com/ru/post/1310836/


All Articles