Let's now learn a technique to display a web page or the content of an HTML document. We will simply be making use of the Line Edit and Push Button widgets so that the user can enter the URL of the desired site, followed by clicking on the Push Button widget. On clicking the push button, that site will appear in a customized widget. Let's see how.
In this recipe, we will learn how to make a small browser. Because Qt Designer does not includes any widgets specifically, the focus of this recipe is to make you understand how a custom widget can be promoted into QWebEngineView, which in turn can be used for displaying a web page.Â
The application will prompt for a URL and when the user clicks the Go button after entering the URL, the specified web page will open in the QWebEngineView object.