I am promoting a widet in UI to QGlWidget and in the constructor of QGLWidget i am assigning swap intervals to 0.
But that does not affect the widget it still shows the value of swap interval as 1.
How can i change the swap value to 0.
The platform is windows.
GLWidget::GLWidget(QWidget * parent): QGLWidget(parent) {
QGLFormat format;
format.setDepthBufferSize(24);
format.setStencilBufferSize(8);
format.setSampleBuffers(true);
format.setSamples(4);
format.setSwapInterval(0);
this -> setFormat(format);
makeCurrent();
qDebug() << "Swap Interval +++++++ " << this -> format().swapInterval();
}