summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/widgets-tutorial
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2009-05-20 12:23:47 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2009-05-20 12:23:47 (GMT)
commitfc6e0155cc3fa9beb3b48704a1effe87a74c2779 (patch)
tree4b3a3213763fd910b4533b61e794604574fbecf6 /doc/src/snippets/widgets-tutorial
parent1ee923a21c270094203c5d2a861a8015598ceda1 (diff)
downloadQt-fc6e0155cc3fa9beb3b48704a1effe87a74c2779.zip
Qt-fc6e0155cc3fa9beb3b48704a1effe87a74c2779.tar.gz
Qt-fc6e0155cc3fa9beb3b48704a1effe87a74c2779.tar.bz2
Doc: First attempt at a simpler widgets tutorial.
Task-number: 253710 Reviewed-by: Trust Me
Diffstat (limited to 'doc/src/snippets/widgets-tutorial')
-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();
+}