summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/widgets-tutorial/template.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/snippets/widgets-tutorial/template.cpp')
-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();
+}