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_()