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:oubleBuffer | QGL:epthBuffer));
But i could see this method is obsolete .

Any help would be appreciated.