QWebView 或 QWebEngineView [英] QWebView or QWebEngineView

查看:35
本文介绍了QWebView 或 QWebEngineView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

QWebView 和 QWebEngineView 之间有任何功能区别吗?如果我理解正确,QWebView 是 webkit,而 QWebEngineView 是闪烁的.程序员有什么不同吗?是否提供更多的外观定制?感觉在另一个?

Are there any functional differences between QWebView and QWebEngineView? If I understand correctly, QWebView is webkit, while QWebEngineView is blink. Are there any differences to the programmer? Does one offer more customization of look & feel over the other?

推荐答案

我想试试 QtWebEngine.它正在取代 QtWebKit 是有原因的.

I would give QtWebEngine a try. It is replacing QtWebKit for a reason.

如果您控制正在呈现的 HTML,那么使用 QWebKit 可能不会有什么坏处.只需确保事先测试您的页面.

If you control the HTML that is getting rendered, then it probably doesn't hurt to use QWebKit. Just make sure you test your pages beforehand.

QWebView 使用 WebKit 作为后端.

QWebView uses WebKit as the backend.

http://doc.qt.io/qt-5/qwebview.html#details

QWebEngineView 使用 Chromium 作为后端.

QWebEngineView uses Chromium as the backend.

http://doc.qt.io/qt-5/qwebengineview.html#details

WebKit 是在 Linux 和 Rekonq 上的 Konqueror 中使用的.它还不错,但在我看来,它在一般(通常是不完美的)网页/html 中没有那么强大.

WebKit is what is used in Konqueror on Linux and Rekonq. Its not bad, but its not as robust across general (and often imperfect) web pages/html in my opinion.

Chromium 是一个更新、更快、更强大的引擎.

Chromium is a much newer, faster and more robust engine.

我不知道具体的所有技术细节,但 QWebEngine 是朝着正确方向迈出的一大步.我主要从我自己的实验和经验使用中发现了这一点.

I don't know all the technical details specifically, but QWebEngine is a big step in the right direction. I've found this mostly from my own experimenting and empirical usage.

为了给 WebKit 一个体面的尝试,看看这个项目并尝试各种页面:

To give WebKit a decent try, look at this project and try a variety of pages:

http://qtweb.net/

https://github.com/magist3r/QtWeb

这里有更多关于 QtWebEngine v QtWebKit 的信息

Here is some more info about QtWebEngine v QtWebKit

http://wiki.qt.io/QtWebEngine

http://en.wikipedia.org/wiki/WebKit

http://wiki.qt.io/QtWebKit

这篇关于QWebView 或 QWebEngineView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆