Using PySide QtWebkit, I want to show a home html page in QWebView. I tried, but I cannot render it. Here is My code:
home.html:
<!DOCTYPE html>
<html>
<head><title>HomeStart</title></head>
<body>
<h3 align="center">Home Page</h3>
<div>
<img src="images/welcome.png"/>
</div>
</body>
</html>
python code:
self.view = QtWebKit.QWebView()
self.view.load("home.html") # can not render in webkit.
# QtCore.QUrl.fromLocalFile(QtCore.QFile().fileName())) # can not render in webkit either.
PS: the python code file and the html file are in the same directory. But in webkit it renders it blank.