May 2019
Intermediate to advanced
542 pages
13h 37m
English
We need to make a copy of our Qt application template from Chapter 4, Building Applications with QMainWindow, and call it simple_browser.py; we're going to develop a rudimentary browser with tabs and a history display.
We start by importing the QtWebEngineWidgets library as follows:
from PyQt5 import QtWebEngineWidgets as qtwe
In our MainWindow class constructor, we'll start the GUI by defining a navigation toolbar:
navigation = self.addToolBar('Navigation') style = self.style() self.back ...Read now
Unlock full access