May 2019
Intermediate to advanced
542 pages
13h 37m
English
Each QWebEngineView object manages its own browsing history, which we can access to allow the user to view and navigate the URLs visited.
To build this feature, let's create an interface that displays the history of the current tab and allows the user to click history items to navigate back to:
history_dock = qtw.QDockWidget('History') self.addDockWidget(qtc.Qt.RightDockWidgetArea, history_dock) self.history_list = qtw.QListWidget() history_dock.setWidget(self.history_list)
The history dock just contains a QListWidget object, which will display the history of the currently selected tab.
Read now
Unlock full access