From 0e80188eaaba9069d86e2606af4950ad01cb5283 Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Tue, 2 May 2023 13:02:56 +0500 Subject: [PATCH] Added OpenGL widget --- mainwindow.ui | 10 ++++++++++ opglwidget.cpp | 8 ++++++++ opglwidget.h | 7 +++++++ 3 files changed, 25 insertions(+) create mode 100644 opglwidget.cpp create mode 100644 opglwidget.h 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) {} +};