summaryrefslogtreecommitdiffstats
path: root/doc/codesnippets/webkitsnippets/simple/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/codesnippets/webkitsnippets/simple/main.cpp')
-rw-r--r--doc/codesnippets/webkitsnippets/simple/main.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/codesnippets/webkitsnippets/simple/main.cpp b/doc/codesnippets/webkitsnippets/simple/main.cpp
new file mode 100644
index 0000000..3a90db9
--- /dev/null
+++ b/doc/codesnippets/webkitsnippets/simple/main.cpp
@@ -0,0 +1,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_())