qt5-qwebview.py

master
neingeist 5 years ago
parent 806593afa1
commit 4a95d0ae17

@ -0,0 +1,20 @@
from PyQt5.QtWidgets import QApplication
from PyQt5.QtWebKitWidgets import QWebView
app = QApplication([])
win = QWebView()
html = '''<html>
<head>
<title>A Sample Page</title>
</head>
<body>
<h1>Hello, World!</h1>
<hr />
I have nothing to say.
</body>
</html>'''
win.setHtml(html)
win.show()
app.exec_()
Loading…
Cancel
Save