QGLWidget and Inheriting from it ?
I don't know the difference between
graphicsView->setViewport(openGlButton->isChecked() ? new QGLWidget(QGLFormat(QGL::SampleBuffers)) : new QWidget);
and inheriting from QGLWidget and setup the opengl by yourself.
Would you explain please both cases and when they are needed?
any idea ?