summaryrefslogtreecommitdiffstats
path: root/examples/opengl/hellowindow/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/opengl/hellowindow/main.cpp')
-rw-r--r--examples/opengl/hellowindow/main.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/opengl/hellowindow/main.cpp b/examples/opengl/hellowindow/main.cpp
new file mode 100644
index 0000000000..af5943adf4
--- /dev/null
+++ b/examples/opengl/hellowindow/main.cpp
@@ -0,0 +1,18 @@
+#include <QGuiApplication>
+
+#include "hellowindow.h"
+
+int main(int argc, char **argv)
+{
+ QGuiApplication app(argc, argv);
+
+ Renderer renderer;
+
+ HelloWindow windowA(&renderer);
+ windowA.setVisible(true);
+
+ HelloWindow windowB(&renderer);
+ windowB.setVisible(true);
+
+ return app.exec();
+}