Sample Buffers
-
This is not Qt specific topic.
This is called multisampling. It is a technique of anti-aliasing (getting rid of sharp, blocky edges).
http://www.opengl.org/wiki/MultisamplingThis is an example how it looks ilke:
http://doc.qt.digia.com/stable/opengl-samplebuffers.htmlTo achieve this a special type of format is needed for front and back buffers (the ones you draw into).
In vanilla OpenGL this is a platform specific feature. On windows you need to pass special attributes when creating OpenGL window (specifically WGL_SAMPLE_BUFFERS and WGL_SAMPLES).Qt handles it by calling setSampleBuffers(true) and setSamples(sampleCount) on QGLFormat before creating a GL widget.
As for the quality - the more samples, the smoother the edges are. For now 2, 4 and in some cases 8 samples are supported I think, depending on your graphics hardware.