summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/doc/examples/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qdoc3/doc/examples/main.cpp')
-rw-r--r--tools/qdoc3/doc/examples/main.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/qdoc3/doc/examples/main.cpp b/tools/qdoc3/doc/examples/main.cpp
new file mode 100644
index 0000000..b777754
--- /dev/null
+++ b/tools/qdoc3/doc/examples/main.cpp
@@ -0,0 +1,13 @@
+#include <QApplication>
+#include <QPushButton>
+
+int main(int argc, char *argv[])
+{
+ QApplication app(argc, argv);
+
+ QPushButton *hello("Hello world!");
+ hello.resize(100, 30);
+
+ hello.show();
+ return app.exec();
+}