aboutsummaryrefslogtreecommitdiffstats
path: root/doc/codesnippets/snippets/customstyle/main.cpp
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-03-03 18:56:26 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:54:02 -0300
commit3798c8718c277d856562829d8326bb7cced0d84a (patch)
treef82e68bbf5e725503ad1e048bd3ae179974e4e21 /doc/codesnippets/snippets/customstyle/main.cpp
parent11042fdbaac58bbab03eb76d849186796cb30c44 (diff)
More code snippets ported to Python.
Diffstat (limited to 'doc/codesnippets/snippets/customstyle/main.cpp')
-rw-r--r--doc/codesnippets/snippets/customstyle/main.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/codesnippets/snippets/customstyle/main.cpp b/doc/codesnippets/snippets/customstyle/main.cpp
new file mode 100644
index 000000000..a1ac4acaa
--- /dev/null
+++ b/doc/codesnippets/snippets/customstyle/main.cpp
@@ -0,0 +1,12 @@
+
+//! [using a custom style]
+import sys
+from PySide.QtGui import *
+
+QApplication.setStyle(CustomStyle())
+app = QApplication(sys.argv)
+spinBox = QSpinBox()
+spinBox.show()
+sys.exit(app.exec_())
+
+//! [using a custom style]