aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/src-glwidgets/gltest/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/src-glwidgets/gltest/main.cpp')
-rw-r--r--src-qt5/src-glwidgets/gltest/main.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src-qt5/src-glwidgets/gltest/main.cpp b/src-qt5/src-glwidgets/gltest/main.cpp
new file mode 100644
index 00000000..041ee5ff
--- /dev/null
+++ b/src-qt5/src-glwidgets/gltest/main.cpp
@@ -0,0 +1,26 @@
+#include <QDebug>
+#include <QApplication>
+#include <QTimer>
+#include <QColor>
+
+#include "../glw-base.h"
+#include "../glw-widget.h"
+
+#include "colorchange.h"
+
+int main(int argc, char** argv){
+ QApplication A(argc,argv);
+ qDebug() << "Creating base widget";
+ GLW_Base base;
+ qDebug() << "Resize base widget";
+ base.resize(200,200);
+ qDebug() << "Create colorchange";
+ GLW_Widget wgt(&base);
+ wgt.setGLBase(&base);
+ wgt.setGeometry(50,50,50,50);
+ colorchange CC(&base);
+ qDebug() << "Start Event loop";
+ base.show();
+ A.exec();
+ qDebug() << " - Finished";
+}
bgstack15