diff --git a/mainwindow.ui b/mainwindow.ui index a32002c..c10723c 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -30,9 +30,19 @@ 0 + + + + + + OPGLWidget + QOpenGLWidget +
opglwidget.h
+
+
diff --git a/opglwidget.cpp b/opglwidget.cpp new file mode 100644 index 0000000..c75dfa7 --- /dev/null +++ b/opglwidget.cpp @@ -0,0 +1,8 @@ +#include "opglwidget.h" +#include + +//virtual void OPGLWidget::initializeGL() override {} + +//virtual void OPGLWidget::paintGL() override {} + +//virtual void OPGLWidget::resizeGL(int w, int h) override {} diff --git a/opglwidget.h b/opglwidget.h new file mode 100644 index 0000000..022f020 --- /dev/null +++ b/opglwidget.h @@ -0,0 +1,7 @@ +#include + +class OPGLWidget : public QOpenGLWidget +{ +public: + OPGLWidget(QWidget *parent) : QOpenGLWidget(parent) {} +};