summaryrefslogtreecommitdiffstats
path: root/examples/opengl/hellowindow/main.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-04-27 17:49:30 +0200
committerSamuel Rødal <samuel.rodal@nokia.com>2011-04-28 15:39:54 +0200
commitf1601a4930ea138955569ebc489d7d73e469b21b (patch)
tree26a955fb7d343c531a78ab3f61c92e54ab147c82 /examples/opengl/hellowindow/main.cpp
parentbbee0db8f99a6a2f3926ca1b4118189fb5a957dc (diff)
Added QWindow example in examples/opengl/hellowindow.
(cherry picked from commit 712f5fe0acc7ef73117151cd8206a0d4f5d01428)
Diffstat (limited to 'examples/opengl/hellowindow/main.cpp')
-rw-r--r--examples/opengl/hellowindow/main.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/opengl/hellowindow/main.cpp b/examples/opengl/hellowindow/main.cpp
new file mode 100644
index 0000000000..1b80dc7523
--- /dev/null
+++ b/examples/opengl/hellowindow/main.cpp
@@ -0,0 +1,13 @@
+#include <QGuiApplication>
+
+#include "hellowindow.h"
+
+int main(int argc, char **argv)
+{
+ QGuiApplication app(argc, argv);
+
+ HelloWindow window;
+ window.setVisible(true);
+
+ return app.exec();
+}