WebEngine StyleSheet Browser Example#
Demonstrates how to inject CSS into web pages using user scripts.
StyleSheet Browser demonstrates how to use the Qt WebEngine C++ classes to inject user stylesheets into web pages.
Running the Example#
Working With Stylesheets#
QWebEngineScript and adding it to the script collection of
QWebEnginePage makes its effect permanent.
Removing stylesheets can be done similarly:
Files and Attributions#
The example uses icons from the Tango Icon Library:
Tango Icon Library