From 4a95d0ae173c59e2fd5a7dd36dd954a0247c222a Mon Sep 17 00:00:00 2001 From: neingeist Date: Sun, 22 Sep 2019 12:30:31 +0200 Subject: [PATCH] qt5-qwebview.py --- qt5-qwebview.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 qt5-qwebview.py diff --git a/qt5-qwebview.py b/qt5-qwebview.py new file mode 100644 index 0000000..9dadf7f --- /dev/null +++ b/qt5-qwebview.py @@ -0,0 +1,20 @@ +from PyQt5.QtWidgets import QApplication +from PyQt5.QtWebKitWidgets import QWebView + +app = QApplication([]) +win = QWebView() + +html = ''' + +A Sample Page + + +

Hello, World!

+
+I have nothing to say. + +''' +win.setHtml(html) + +win.show() +app.exec_()