PDA

View Full Version : qglwidget double buffering



vaibhav
27th July 2011, 13:09
Hi,
I want to use the double buffering in QT for QGLwidget.
Do i have to set some flags to have this feature or by default QGLWIdget has double buffering ON.?

I tried to use setFormat(QGLFormat(QGL::DoubleBuffer | QGL::DepthBuffer));
But i could see this method is obsolete .

Any help would be appreciated.

Talei
27th July 2011, 17:03
It's on by default.
There was change in Qt, see:
http://doc.qt.nokia.com/latest/qglwidget.html#doubleBuffer
http://doc.qt.nokia.com/latest/qglformat.html#setDoubleBuffer