summaryrefslogtreecommitdiffstats
path: root/doc/codesnippets/webkitsnippets/simple/main.cpp
blob: 3a90db9ac4d8ce7848eeaa42fdd5aaaa5960f9af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from PySide.QtCore import *
from PySide.QtGui import *
from PySide.QtWebKit import *
import sys

app = QApplication(sys.argv)
parent = None
//! [Using QWebView]
view = QWebView(parent)
view.load(QUrl("http://qt.nokia.com/"))
view.show()
//! [Using QWebView]
sys.exit(app.exec_())