diff options
author | Ken Moore <ken@ixsystems.com> | 2017-09-26 13:42:19 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-09-26 13:42:19 -0400 |
commit | bf7e372df336263ccdc9d0ab22554fb1ff6f629a (patch) | |
tree | d30c8ad898484380ba81dafcaaaee4c3057b5adc /src-qt5/src-glwidgets/gltest/main.cpp | |
parent | Get the window embed routine cleaned up and demo-ready. (diff) | |
download | lumina-bf7e372df336263ccdc9d0ab22554fb1ff6f629a.tar.gz lumina-bf7e372df336263ccdc9d0ab22554fb1ff6f629a.tar.bz2 lumina-bf7e372df336263ccdc9d0ab22554fb1ff6f629a.zip |
Add a bunch of new files specifically for providing a new OpenGL-backed basis for doing visuals within Qt/Lumina.
Diffstat (limited to 'src-qt5/src-glwidgets/gltest/main.cpp')
-rw-r--r-- | src-qt5/src-glwidgets/gltest/main.cpp | 26 |
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"; +} |