查看WebEngine模块内核Chromium版本号有两个方法。
1.查看官方文档
在Qt5.12.4的官方帮助文档中搜索 Qt WebEngine Overview ,其中的WebEngine Core Module介绍如下:
Qt WebEngine Core Module
The Qt WebEngine core is based on the Chromium Project. Chromium provides its own network and painting engines and is developed tightly together with its dependent modules.
Note: Qt WebEngine is based on Chromium, but does not contain or use any services or add-ons that might be part of the Chrome browser that is built and delivered by Google. You can find more detailed information about the differences between Chromium and Chrome in this overview that is part of the documentation in the Chromium Project upstream source tree.
This version of Qt WebEngine is based on Chromium version 69.0.3497.128, with additional security fixes from newer versions.
Chromium版本直接告诉我们了,69.0.3497.128。当初没有仔细看文档,走了一个大弯路才查到这个版本号。下面说下我之前查Chromium版本号的“笨方法”。
2.写代码
使用QWebEngineView加载这个网址,https://www.w3school.com.cn/js/js_browser.asp
这个网站可以直接在线检测,不用你再写H5的测试文件,非常方便。
比如我的项目,需要加载一个网页的地图,调试的时候,直接加载上面的地址,就可以查到目前正在使用的Qt的Chromium版本号。
与文档中说明的Chromium版本一致。