summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-03-01 17:16:00 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2011-03-01 20:31:39 -0300
commit35168cb86a3172ac7d10cfba63ba00b3c1fdf121 (patch)
treea3a44981a8c1573df71600655f55a3b01fbae258
parentdaffd9831add06d88feda34b09199a2ec5eb1c02 (diff)
downloadpyside-35168cb86a3172ac7d10cfba63ba00b3c1fdf121.tar.gz
pyside-35168cb86a3172ac7d10cfba63ba00b3c1fdf121.tar.xz
pyside-35168cb86a3172ac7d10cfba63ba00b3c1fdf121.zip
Missing doc code snippet for webkit.
-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_())