webkit browser

The widget QWebView can be used to render webpages. QWebView uses the QtWebkit web browsing module. To show a website simply call the load(url) method.

QWebview suports navigational functions: forward(), back(), reload(), stop().

Note: QWebView only shows the webpage contents. Code for a python webbrowser below.

python webbrowser

In the example below we have a complete webbrowser. It supports tabs, basic navigation and a keyboard shortcut. It’s a minimal example that is extensible.


Previous Post
Next Post

Leave a Reply