Rendering web content with QWebEngineView

Qt includes a port of WebEngine, the popular browser implementation behind Chromium and several open source browsers, in its Qt WebEngine module. Using the Qt WebEngine module, your application can display rich HTML, or even be a full-fledged web browser on its own. It's very easy to create hybrid applications that incorporate both features of native applications and the ability to display web content from local resources, the local filesystem, or the internet.

Do note that the Qt WebEngine module only works on MSVC compilers. You will get an error if you use other compilers.

To use the Qt WebEngine module, you must include it in your application by adding the following to your PRO file:

QT += webenginewidgets ...

Get Application Development with Qt Creator 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.