QWebView或QWebEngineView [英] QWebView or QWebEngineView

查看:541
本文介绍了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天全站免登陆