Some notes on the Qt browser module

  • Before Qt5.6, webkit was used. After Qt5.6 version, there are two situations. One is that the Qt library corresponding to the mingw compiler (windows system) no longer provides a browser module.

  • Qt5.6 and later versions do not have browser controls in Linux systems and Mac systems, and they all use webengine.

  • It is just that the Qt version of the mingw compiler on Windows does not exist, but other systems actually have it. Many people have questions in this area, thinking that only the msvc compiler has browser controls. In fact, to be precise, the Qt library of msvc on Windows comes with browser controls.

  • When installing Qt, the webengine module is not checked by default. You need to actively check it to install it.

  • Not all Qt versions of msvc have the webengine browser module. Even if you check it, it is useless. Some versions are not officially compiled and need to be compiled by yourself. You need to go to the corresponding Qt installation directory to check whether there is a Qt5WebEngine.dll file.

  • If it is just to make up for the lack of browser modules in the mingw version, miniblink is recommended.

  • If you want to be uniformly compatible with various versions and systems, it is recommended to use cef.

  • If there is no historical baggage, it is recommended to use webengine, which has high integration with Qt.

  • Webkit and miniblink do not support GPU by default, and webengine uses GPU by default.

  • qwebengine does not support MP4 by default and needs to be recompiled by yourself.


I recommend a Lingsheng Academy project class. I personally think the teacher taught it well. I would like to share it with you:
Lingsheng Platinum Learning Card (including infrastructure/high-performance storage/golang cloud native/audio and video/Linux kernel)
https://xxetb.xet .tech/s/VsFMs

Guess you like

Origin blog.csdn.net/qq_40135848/article/details/132948015