How to do it...

First, let's set up our WebEngine project:

  1. Download and install Microsoft Visual Studio if you do not have it installed on your computer. At the moment, Qt's WebEngine module only works with the Visual C++ compiler and not others, such as MinGW or Clang. This might change in the future, but it all depends on whether Qt developers want to make port it to other compilers or not. You can download the latest Visual Studio from https://www.visualstudio.com.
  1. Make sure that the Qt version you installed on your computer supports the Visual C++ compiler. You can add the MSVC 2015 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 ...

Get Qt5 C++ GUI Programming Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.