需要继承的两个类
#include <QOpenGLWidget>
#include <QOpenGLFunctions_3_3_Core>class OpenGLWidget : public QOpenGLWidget,public QOpenGLFunctions_3_3_Core
{
Q_OBJECT
public:
explicit OpenGLWidget(QWidget *parent = nullptr);
virtual void initializeGL() override;
virtual void resizeGL(int w, int h) override;
virtual void paintGL() override;
signals:};
需要Override的三个函数
virtual void initializeGL() override;
virtual void resizeGL(int w, int h) override;
virtual void paintGL() override;