Chapter 9. Developing a Web Application Using Qt Web Engine

In this chapter, we will cover the following recipes:

  • Introduction to Qt WebEngine
  • WebView and web settings
  • Embedding Google Maps in your project
  • Calling C++ functions from JavaScript
  • Calling JavaScript functions from C++

Introduction

Qt includes a module called Qt WebEngine that allows us to embed a web browser widget into our program and use it to display web pages or local HTML contents. Prior to version 5.6, Qt used another similar module called Qt WebKit, which is now deprecated and has since been replaced by the Chromium-based web engine module. Qt also allows communication between JavaScript and C++ code through the "web channel", which enables us to make use of this module in a much ...

Get Qt5 C++ GUI Programming Cookbook 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.