How to anti-alias in QtOpenGL program?
-
I really don't know the procedure, so all my program using Qt and OpenGL have jagged edges. Could anybody help me out?
-
@
glEnable(GL_MULTISAMPLE);
glEnable(GL_LINE_SMOOTH);
@or for entire widget:
@
QGLWidget::setFormat(QGLFormat(QGL::SampleBuffers));
@ -
Thank you for you advice. I've tested that the former solution didn't make sense, whereas the latter took effect.