May 2019
Intermediate to advanced
542 pages
13h 37m
English
The QtWebEngine browser, just like the Chromium browser that it's based on, offers a very customizable web experience; we can edit many of its settings to implement various security, functionality, or appearance changes.
To do this, we need to access the following default settings object:
settings = qtwe.QWebEngineSettings.defaultSettings()
The QWebEngineSettings object returned by the defaultSettings() static method is a global object referenced by all web views in our program. We do not have to (nor can we) explicitly assign it to the web views after changing it. Once we've retrieved it, we can configure it in various ways and our settings will be respected by all the web views we create.
For example, let's alter the fonts ...
Read now
Unlock full access