Hi All,
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?