summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2009-05-21 01:33:33 (GMT)
committerDavid Faure <faure@kde.org>2009-05-21 01:33:33 (GMT)
commitf645346d32468ae3ded46f42d4e4f27135526913 (patch)
tree590afb6bff714e46e2598540cef2a6659927c0bc /doc/src/snippets
parentbc21fb2449ec80da39ee3f533f8f76b2ae726f50 (diff)
parente28412e4c2389c1765441cec02baed58a63dd29c (diff)
downloadQt-f645346d32468ae3ded46f42d4e4f27135526913.zip
Qt-f645346d32468ae3ded46f42d4e4f27135526913.tar.gz
Qt-f645346d32468ae3ded46f42d4e4f27135526913.tar.bz2
Merge branch 'master' of git://gitorious.org/qt/qt
Diffstat (limited to 'doc/src/snippets')
-rw-r--r--doc/src/snippets/widgets-tutorial/template.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/src/snippets/widgets-tutorial/template.cpp b/doc/src/snippets/widgets-tutorial/template.cpp
new file mode 100644
index 0000000..5958676
--- /dev/null
+++ b/doc/src/snippets/widgets-tutorial/template.cpp
@@ -0,0 +1,14 @@
+#include <QtGui>
+
+// Include header files for application components.
+// ...
+
+int main(int argc, char *argv[])
+{
+ QApplication app(argc, argv);
+
+ // Set up and show widgets.
+ // ...
+
+ return app.exec();
+}