Introducing Qt WebEngine
In this example project, we will explore the basic features of the WebEngine module in Qt and try building a simple working web browser. Since Qt 5.6, Qt’s WebKit module has been deprecated and replaced by the WebEngine module, which is based on Google’s Chromium engine.
How to do it…
First, let’s set up our WebEngine project:
- At the moment, Qt’s WebEngine module only works with the Visual C++ compiler and not others, such as MinGW or Cygwin. This might change in the future, but it all depends on whether Qt developers want to port it to other compilers or not. Make sure that the Qt version you installed on your computer supports the Visual C++ compiler. You can add the MSVC 2019 64-bit component to your Qt installation using Qt’s maintenance tool. Also, make sure that you have installed the Qt WebEngine component in your Qt version:
Figure 13.1 – Making sure MSVC 2019...